# Identify php.ini file used

To identify the php.ini file that has been used, we could write a file with a phpinfo() function and extract the info.

## Create file with phpinfo(); inside

```bash
echo '<?php phpinfo(); ?>' > info.php
```

## Check the file in web browser

<figure><img src="https://344105405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MFJ8sxzGfhnecDpAjrc%2Fuploads%2FSeKPAj7ZD6JuLKkRM8YO%2Fimage.png?alt=media&#x26;token=ebde0f05-cd8f-467f-a6e3-80f9356365b0" alt=""><figcaption></figcaption></figure>

And we have the exact php.ini file used for the web server.
