Web Hosting Talk







View Full Version : PHP includes


wintek
06-23-2003, 11:52 AM
I have question concerning the proper setting of the ‘include path’ in php.ini. I want it to look in the current directory for includes.

This is what I am currently using.

.;./;/usr/local/lib/php:/usr/lib/php

Is this correct?

Thanks in advance for your comments and suggestions.

Lagniappe-labgeek
06-23-2003, 01:22 PM
Mine is as it came with 4.3.2 - that is, commented out. So any includes need to be in the current directory or have an absolute or relative path to them specified. PHP won't attempt to go "find" it. This is with php running as an apache module. Perhaps it needs to be set when run as cgi?