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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP5 include_path errors

Status
Not open for further replies.

HeatherFeuer

Technical User
Jan 3, 2002
19
US
I have Apache2/Perl5/PHP5/MySQL4.1 installed on my WinXP box as a development/testbed server for any websites I'm creating.

Whenever I run a phpinfo() script I see this line:
Code:
include_path	.;C:\php5\pear	.;C:\php5\pear

I have checked and double checked and the only php.ini file that is active is under the PHP path: e:\webserver\PHP. That php.ini file has the include_path set to:
Code:
; Windows: "\path1;\path2"
;include_path =

I have also done a registry search with zero results. I'm totally at my wit's end and ready to pull whatever hair is left on this old head! Every php script that has an include line fails to run properly. The apache error log will show:
Code:
[Sat Nov 10 09:11:01 2007] [error] [client 192.168.2.1] PHP Warning:  include()
[<a href='function.include'>function.include</a>]: Failed opening '/text.php' for
inclusion (include_path='.;C:\\php5\\pear') in
E:\\Websites\\LarleeTree\\html\\index.php on line 5, referer:
[URL unfurl="true"]http://larleetree.selfip.org/admin/rightbanner.php[/URL]

Can someone please help me figure out how to get rid of the include_path line so my scripts will run properly?

Thanks!!!

Heather
 
the php.ini file that is being used is recorded in the output of phpinfo(). that should be your first port of call for information.

if php cannot find an appropriate ini file it infers a default set of parameters.

you should also check that there are no php values being set in httpd.conf or any .htaccess file. lastly, of course, your own scripts could be resetting the include path.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top