How to locate php.ini
PHP configuration or php.ini file
The php.ini file is also known as configuration file or you can say special file for PHP. The php.ini file is where you declare changes to your PHP settings.
Steps for locating php.ini file or configuration file
1. Create A PHP file with any name and type phpinfo() function as follows:
<?php //Info.php phpinfo(); ?>
2. Copy this file into the WAMP or XAMP server. In general case C:\wamp\www\project
3. Than type URL on the browser http://localhost/project/info.php
Now yow can see the path of the php.ini file inside the details.
Locate php.ini file in WAMP
- Start WAMP server first.
- Left click on WAMP tray icon and select PHP.
- Click on php.ini file
After each change in php.ini file you will have to restart the the WAMP server.