Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include Question

Status
Not open for further replies.

axman505

Technical User
Joined
Jun 20, 2001
Messages
489
Location
US
What should my include path be set to? .. I just upgraded from 4.3.4 to 4.3.5 and now i am having trouble .. before i had an incldue as follows:

include "
now this produces an error as follows:

[client 192.168.0.100] PHP Warning: main(): Failed opening ' for inclusion (include_path='.:/path/to/httpd/root') in /path/to/file/called/from on line 408, referer:
 
Make sure that allow_url_fopen is turned on in php.ini, so that you can open files using http

I REALLY hope that helps.
Will
 
allow_url_fopen is set to on .. any other suggestions?
 
Are you sure that [tt]path[/tt] is a valid hostname of a webserver? http://[red]path[/red]/to/server/file.php sounds a bit funny to me

Also, if [tt]path[/tt] has PHP installed, then what's included will not be a PHP document, it will be an HTML document... because all the PHP code will have already been parsed by the PHP installed on [tt]path[/tt].

Finally, If the script you're trying to include is on the local computer, you don't need to open it with All you need is to specify the filename (I recommend the absolute path).

I REALLY hope that helps.
Will
 
If i access it via local IP it works fine, but when i try to get to it from the internet IP it has issues. Is there something here i need to change?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top