Portal Home > Knowledgebase > How To's and more > Review the current info and configs of PHP


Review the current info and configs of PHP




If you place this line of code within a PHP page, <? phpinfo() ?> it will output a large amount of information about the current state of PHP. 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 GNU Public License. It is recommended that you create a page like the one below and view it on your own web site to assure all of the variables are accurate for the server that your web site is actually running on. An example of the entire page you could create is as follows: 

PHP:
--------------------------------------------------------------------------------

<html> 
<head>
<title>PHP Info</title>
</head><
<body bgcolor=#FFFFFF>
<p><? phpinfo() ?></p>
</body>
</html> 


--------------------------------------------------------------------------------

Save the file as phpinfo.php and upload it to your www directory. At that point, if you go to http://www.yourdomain.com/phpinfo.php you will be able to see the current status. 

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
File Extensions (Views: 1040)