Jan 16, 2011

How to identify the active php.ini

In the development environment sometimes when you have multiple versions of PHP installed on the same wamp setup you need to know which version of php.ini is active.

You can get the path by creating a phpinfo.php file and simply calling the function phpinfo() in it.

Access the file through your browser. It will list all the relevant information about your PHP/MySQL version. Locate the Loaded Configuration File variable and use that path to make changes in the active php.ini file.

No comments:

Post a Comment