PHP looks for php.ini in the current working directory, the path designated by the environmental variable PHPRC, and in the path defined at compile time.
Regards Ken, http://kennethtucker.com -- Tech news, photography and other points of interest. On Sunday, February 26, 2006, at 06:54 PM, Bob wrote: > Hi Ken, > Thanks for you reply. > > In "Configuration File Path", it's set to the standard > "/usr/local/Zend/etc/php.ini". > I'm unable to look at this, but I'm assured, it hasn't been modified > from the standard setup. > > The php.ini file in the public directory was definitely working. > I have now deleted it, with no ill effects or errors. > > I didn't expected php to look in the public directory for a php.ini > file. > Is it normal for php to do so, as I could *maybe* use this for other > things? > Bob. > > > ----- Original Message ----- > From: "Kenneth Tucker" <[EMAIL PROTECTED]> > >> Bob, >> At startup PHP searches for the php.ini within the default directory, >> specified with the php compile time configure option >> --with-config-file-path. >> >> Check the "Configuration File (php.ini) Path" referenced with >> phpinfo() >> by executing a one line php script <?phpinfo()?> . If the >> configuration file was not found at startup, the section >> "Configuration >> File (php.ini) Path" shows the directory, which was unsuccessfully >> searched for the file. If the configuration file was found at startup, >> the section "Configuration File (php.ini) Path" shows the >> configuration >> file, which was used. > > > > Community email addresses: > Post message: [email protected] > Subscribe: [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > List owner: [EMAIL PROTECTED] > > Shortcut URL to this page: > http://groups.yahoo.com/group/php-list > Yahoo! Groups Links > > > > > > > > Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
