HostMonster Web Hosting Help

PHP information page

Summary

In the phpinfo.php page you can see the PHP version at the top of the file, and you can find the current version of MySQL.

You can also use phpinfo to check php settings like safe_mode and register_globals.

How to Create a php.ini File

Create a file named 'phpinfo.php' in the public_html folder of your site and insert the one of the following selections of code:

If you want to show all the information about PHP, then use the following code:

<?php
phpinfo(); // This would be used to display all of the PHP information available for the installation.
?>

If you would like to just see the installed modules and their current values, use the following code:

<?php
phpinfo(INFO_MODULES); // This would be used to display the installed modules and their current values.
?>

If you would like to display the configurations you have setup through your php.ini or to review what's setup through the default configurations, then use the following code:

<?php
phpinfo(INFO_CONFIGURATION); // This would be used to display the configurations you have setup through your php.ini or to review what's setup through the default configurations.
?>

Next, go to your browser and type:

http://example.com/phpinfo.php

Please replace "example.com" with your actual domain.

Knowledgebase Article 55,712 views bookmark tags: php phpinfo (updated 461 days ago)


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

If suddenly when you go to your page, you get nothing on the page. You can still get HTML to display, just not PHP. To serve HTML pages to browsers, we don't associate the Apache processes with your 2 (updated 1669 days ago)
Knowledgebase Article 51,065 views tags: page php

When creating a symlink to a php page, I get a 500 error. I am able to use symlinks to other files and folders fine. (updated 1411 days ago)
Knowledgebase Article 46,786 views tags: link php

How do I redirect users to another page using PHP? (updated 1293 days ago)
Knowledgebase Article 67,283 views tags: header php redirect redirects

Related Help Content

How do I enable PHP 5 for my PHP applications? How do I change to PHP FastCGI? How do I use a single php.ini file? (updated 227 days ago)
Knowledgebase Article 129,242 views tags: config php

PHP vs PHP single php.ini vs PHP with FastCGI (updated 701 days ago)
Knowledgebase Article 109,064 views tags: configuration php server

This article will show how to view which PECL packages are alredy installed, as well as show you how to install additional package. (updated 166 days ago)
Knowledgebase Article 32,768 views tags: package pear php

To view your stats, scroll down to the Logs section of the cPanel Here are different programs that can be used to view your stats. We most recommend awstats When you select your stats program, you ma (updated 624 days ago)
Getting Started Article 93,810 views tags: awstats domain select stats view

How can I adjust the php settings specifically for an Addon Domain? (updated 639 days ago)
Knowledgebase Article 88,211 views tags: domain php

How do I change the PHP environment for my site with php.ini? (updated 257 days ago)
Knowledgebase Article 254,112 views tags: configuration php server

In the newer versions of PHP, they have included a new directive to control and handle remote includes. We disable this option, by default, which may affect some of your PHP scripts. (updated 1621 days ago)
Knowledgebase Article 50,639 views tags: php remote url

This article will outline which PHP PEAR Packages are installed and how you can install additional PHP PEAR Packages. (updated 188 days ago)
Knowledgebase Article 52,706 views tags: package pear php