Home » PHP

How to find php version and php.ini file location path?

14 January 2010 1,761 views Popularity: 4% Share/Bookmark

email

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:

PHP INFO

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 :-)

Related posts:

  1. WordPress Fix: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)
  2. jQuery: Grey out background and preview image as popup
  3. How to get working site path and directory name in php?
  4. File Upload in PHP :: Simplified
  5. php.ini : Most commonly used php directives
  6. Google says Sorry to me
  7. Multiple file upload with jQuery and php
  8. RabbitVCS: Easy Graphical SVN & GIT version control tool for Linux
  9. File Upload in PEAR and Smarty
  10. Magento: How to upload file?