How to find php version and php.ini file location path?
We can view the php settings by creating a php file in our web root with the following code:
Let the name of the file be phpinfo.php
Open http://localhost/phpinfo.php in your browser in your local computer. If you are working online then open http://yoursite/phpinfo.php
You will see the following on your browser:

how to Find Php.Ini
PHP INFO
You can clearly see that the PHP Version I am using is 5.2.5. Your version may be different from mine.
From this page, you will be able to review about all the php directives whether they are in enabled or disabled state. You can enable, disable, or edit directives from php.ini file. You can see in the image above about the location of php.ini file. See Loaded Configuration File. It shows the path of php.ini file to be C:\wamp\bin\apache\apache2.2.6\bin\php.ini. You have to change this file (php.ini) in order to configure your php settings.
Cheers n Enjoy PHPing
Article source: http://blog.chapagain.com.np/how-to-find-php-version-and-php-ini-file-location-path/
