Where is my php.ini?

Actually, I don’t know if it is normal that you have more than one php.ini on your computer, but in any case, locating the php.ini that is working is very easy, as you can find out through the phpinfo() function. I explain how to do it. First, create a file on your server that has the following PHP code: You save that file anywhere in your server’s publish directory, with any name, for example phpinfo.php. As long as you can access that file from your web server, with an address like something like http://www.yourdomain.com/phpinfo.php or http://localhost/phpinfo.php. Now, when you access that page, you will see that a list of PHP features that you have installed on your server appears. In all that list of data that it shows you, you have to locate a piece of data that is marked as “Loaded Configuration File”. Next to it you will see the path where the php.ini file that has been loaded to configure PHP is located. The path will be something like: C:wamp/napacheapache2.2.8/inphp.ini So you will already have it located on your hard drive and you can edit the php.ini with the certainty that you are touching the correct file.

See also  API for weather information
Loading Facebook Comments ...
Loading Disqus Comments ...