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