What is PHPinfo and how can I run it?
Print Email
Email this article
Close
Email this article
CloseYou are here: Home > Website Support > PHP
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
// Show all information, defaults to INFO_ALL
phpinfo();?>
Upload the file (phpinfo.php) into the public_html folder of your domain. If your file is named ‘phpinfo.php’, then browse to http://www.your-domain.com/phpinfo.php (where ‘your-domain.com’ is the name of your registered domain with Hetzner).
Was this information helpful?
Yes NoThank you for your feedback
We are delighted to find that our article resolved your query.
Thank you for your feedback
We will resolve your query as soon as possible.
Please take a few moments to comment on your unresolved query. Simply tell us what your problem is. We guarantee that we'll get back to you within two hours (during office hours) in response to your query.
