Knowledgebase

Creating PHPinfo files

When you first setup your hosting account with you you will probably want to see whats available, and what settings your current server is using.

To get a list of the current settings and installed modules on your current server you can very easily create whats called a phpinfo file then upload this to your webs hosting account, anywhere within the public_html folder then simply view the file in your web browser.

So here's how you do it.

A) Open a simple text editor like notepad and enter the following:

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>

B) Save the text document as "phpinfo.php"

C) Upload the document to your public_html folder

D) Using your web browser, go to yourfulldomainname/phpinfo.php (Replace "yourfulldomanname" with your actual web address)

That will load the file you have just created into your web browser and show you all of the php information about modules loaded, what settings each php module has and some apache settings too as well as version numbers so you can check for compatability.

  • 44 Users Found This Useful

Was this answer helpful?

Related Articles

Errors relating to Magic Quotes

If your getting error messages relating to "Magic Quotes" when using or programming in PHP, or...

open_basedir restriction in effect

If you are trying to use your temporary URL provided in your welcome email and are getting error...

Path to PEAR and PEARDB

Your path to PEAR on all servers is: /home/cpanelusername/php (Replacing "cpanelusername"...

Perl version & Path to Perl & Sendmail

If you need to find out the Current Versions and Paths to both Perl and Sendmail then simply...

PHP Compiled as? (Problems with files)

In answer to the many many questions we get about how PHP has been compiled, let us try to...