Question

I just managed to install the latest php version using this guide

Upgrading the Native PHP Installation on OS X Mountain Lion (Aug 2012 by Bruno Skvorc) and now I wonder should the php.ini file be located.

When I am at the terminal and I give the command php --ini I get the following path :

/usr/local/lib

When I execute phpinfo() in a script I get the following php.ini path :

/etc

Where should I put php.ini file and what should I put in it?

Was it helpful?

Solution

php -ini shows the location of the binary's .ini file (ie calling PHP not through a browser) phpinfo() shows the location of the version used by the server (ie calling PHP through a browser)

I dont know what you want in there, the ini file allows you to customize php to your use of php. I dont know what you want out of it ?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top