Skip to main content
6 of 8
replaced http://stackoverflow.com/ with https://stackoverflow.com/
user avatar
user avatar

Best way to find this is: create a php file and add the following code:

<?php phpinfo(); ?> 

and open it in browser, it will show the file which is actually being read!

Updates by OP:

  1. The previously accepted answer is likely to be faster and more convenient for you, but it is not always correct. See comments on that answer.
  2. Please also note the more convenient alternative <? php_ini_loaded_file(); ?> mentioned in this answer.
Tejas
  • 6.5k
  • 1
  • 23
  • 25