How to Create phpinfo File and Check PHP Information

How to Create phpinfo File and Check PHP Information

There are Different Methods to check PHP information 

Check PHP Information using cPanel

  1. Login to cPanel account
  2. There is MultiPHP manager  tool under Software section
  1. You see there is PHP version mentioned

Checking the PHP version by creating phpinfo.php file in the File manager

  1. Login to cPanel account
  2. Go to file manager
  3. Under public_html folder press on +File option for creating new file
  1. Create new file with phpinfo.php name under /public_html directory
  1. Open that file in Edit mode just right click and click on the EDIT option it will open new windows. Write down below code and save the file.

<?php

phpinfo();

?>

  1. Now open a new tab and type the Url http://yourdomain.com/phpinfo.php (Here your domain will be domain owned by you)it will show output like below. It will show all information about PHP.