Skip to main content
7 of 8
Need to echo output of function
Ateş Göral
  • 140.5k
  • 27
  • 142
  • 191

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 echo php_ini_loaded_file(); ?> mentioned in this answer.
Tejas
  • 6.5k
  • 1
  • 23
  • 25