View Tutorial Metadata Edit Content Revision History Add to Watchlist Add New Tutorial Obtaining information about your PHP installation with phpinfo

Obtaining information about your PHP Installation with phpinfo()

Using phpinfo() to display information about PHP

It's pretty easy to find out all the information you need about your PHP configuration. Just open an editor, and create a file containing:

<?php phpinfo(); ?>

Save this file as "info.php", then upload it on the server via FTP for example, on the root of the server.

Finally, access the PHP file through the web server: just go to the URL "http://example.com/info.php" in a browser. Substitute example.com with the host machine, and you should see your PHP configuration.

Take care to delete the file afterwards, as it could expose information about your server that you don't want the whole planet to know.

Only plain text supported.

Optional

Required - will be kept private

Optional

 
 

Rating: (0+, 0-) In: PHP 5