Loading

Where is my php.ini?




Where is my php.ini?

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.

then the table loads with the settings.

cheers, joshu

You might want to read these as well

Loading...







Where is my php.ini?

Joshu is the Founder of the OrangeCopper Webmaster's Community, He had been designing & developing web applications as a freelancer in this field for the past 9 years. OC was born in 2002 December and since 2004 Joshu had been Blogging on the Web about what he learned the Hard way, So that you could learn it the Easy Way. Follow OrangeCopper on Twitter and you would be Auto-Followed.


blog comments powered by Disqus