PHPinfo is a useful function of PHP for returning compiled information about the PHP environment on your server. This includes information about PHP compilation options and extensions, the PHP version, server information and environment, the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers and the PHP license.
Because every system is setup differently, phpinfo is commonly used to check configuration settings for available predefined variables on a given system. Also, phpinfo is a valuable debugging tool as it contains all EGPCS (Environment, GET, POST, Cookie, Server) data.
Copy and paste the following code into your text editor, and save the file as phpinfo.php:
<?php phpinfo(); ?>
Upload the file (phpinfo.php) into the public_html folder of your domain. If your file is named ‘phpinfo.php’, then browse to www.your-domain.com/phpinfo.php (where ‘your-domain.com’ is the name of your registered domain).