where is my php.ini file located

where is my php.ini file located

The path where PHP looks for its php.ini file is built into PHP on compile time. To find out that path, use a PHP script that does a phpinfo() call. This will display a huge table of all of PHP’s configuration variables. The path to php.ini can be found in the first part of that table, near the start of the page.

you can simply create a new file (name it “phpinfo.php”, for example) that contains the single line

<?php phpinfo(); ?>

Upload that file anywhere on your website and call it up in your browser and then the table loads with the settings.

One Response

  1. FreeNewbie March 2, 2012