PHPinfo is a function that returns information, in HTML form, about the PHP environment on Linux server. To run PHPinfo you must save the following code in a file on your computer using your text editor:
You can save the file as phpinfo.php. Then FTP the file to the web content folder for your domain and run PHPinfo by using “www.yourdomain.com/phpinfo.php” on the web browser.
The phpinfo provides lot of information which is required for setting base path in the config file, seetings like Register_Globals, path to perl or cgi etc.
For more information, click here.