Creating a PhpInfo Script and How to View It

Written By Support Team (Administrator)

Updated at April 19th, 2022

The PHP Info script is one method to check the PHP Info used on your website and the PHP Info contains detailed information on the PHP used on your website.


In this article, we will provide information on the following panels:
 - Plesk Panel Panel
 - cPanel panels


  1. Plesk Panel

Please access your Plesk dashboard then click File Manager.

Click the + icon and click Create File.

Add a File Name with the name phpinfo.php -> Click Ok.

If it is, it will display the success information.

Click the phpinfo.php file that was created earlier and add the following code

<?php

 

phpinfo();

 

?>


Click Save to save.

To view PHP information you can add /phpinfo.php at the end of your domain as follows
https://your-domain.com/phpinfo.php _ _

 

  1. cPanel panels

Please access your cPanel dashboard then look for the File Manager menu.

Then you can access files on your domain in public_html.

Then can create files by clicking File Manager.


Then fill in the New File Name with the name phpinfo.php.

To add code you can click the phpinfo.php file then click the Edit icon.


Click the phpinfo.php file that was created earlier and add the following code

<?php

 

phpinfo();

 

?>


Then Save Changes .

 

To view PHP information you can add /phpinfo.php at the end of your domain as follows
https://your-domain.com/phpinfo.php _ _ 


Was this article helpful?