Skip to main content
Notice removed Recommended answer in PHP by ADyson
Notice added Recommended answer in PHP by ADyson
Active reading [<https://www.youtube.com/watch?v=1Dax90QyXgI&t=17m54s> <https://en.wikipedia.org/wiki/PHP> <https://en.wikipedia.org/wiki/Sentence_clause_structure#Run-on_sentences>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

BestThe best way to find this is: create

Create a phpPHP (.php) file and add the following code:

<?php phpinfo(); ?> 

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

Updates by the 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.

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.

The best way to find this is:

Create a PHP (.php) file and add the following code:

<?php phpinfo(); ?> 

and open it in a browser. It will show the file which is actually being read!

Updates by the 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.
Need to echo output of function
Source Link
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.

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.

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.
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

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 answeranswer 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 answerthis answer.

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.

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.
code error as important part at the start of php tag was missing.
Source Link
j_lentini
  • 5.7k
  • 6
  • 45
  • 65
Loading
code error as important part at the start of php tag was missing.
Source Link
Loading
referenced other answers
Source Link
necromancer
  • 24.7k
  • 22
  • 72
  • 118
Loading
improved answer
Source Link
necromancer
  • 24.7k
  • 22
  • 72
  • 118
Loading
Source Link
Tejas
  • 6.5k
  • 1
  • 23
  • 25
Loading