PHP - config file location

Method 1

Create info.php with code above and open the file in your browser

You will see the path to the php.ini like in the following screenshot

Method 2

For Linux based OS

For Windows

Output should be something like this

Comments