< 1 min read

How to create PHP Info file

This file reads entire server setup but happens to be a vulnerability, so delete it after usage.
Open text editor and insert the following code in it:

<?php phpinfo(); ?>

Save the file as info.php and upload it to the root of your website. You can then visit the info page and see the status of your server (e.g. www.yourwebsite.com/info.php)

You can name the file anything you like but the content of the file is the same.

Updated on: 02/11/2026