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!

include_path in Windows

Status
Not open for further replies.

alsaffar

Programmer
Oct 25, 2001
165
KW
Hi guys,

What do I have to edit in the php.ini file to make the include statment works fine when I'm working localy?

By default in the php.ini file:

;include_path = ".;c:\php\includes"

Well, all my files lied in:

C:\Program Files\Apache Group\Apache2\htdocs

When execute the following code

<? include(&quot;/News/NewsCP/index.php&quot;); ?>

it works just fine in the web, but localy it gave me the following error:

Warning: Failed opening '/home/alfjr/Connection/Parameters.php' for inclusion (include_path='.;c:\php4\pear') in C:\Program Files\Apache Group\Apache2\htdocs\News\NewsCP\index.php on line 9

Please I need it to work fine localy.
 
might wanna remove the .; from

include_path='c:\php4\pear'

hth Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Bastien, why should s/he do that? That would make it impossible to include files in the same directory as the script, which is a bad idea IMO.
alsaffar, try recreating the filesystem that your web server uses or use relative paths to your included scripts. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top