Monday, January 06, 2014

How to create phpinfo file to check the php values

You can use a phpinfo();  page to view the current PHP information for your server,This file outputs a large amount of information, such as:
  • Information about PHP compilation options and extensions
  • PHP version
  • Server information and environment (if compiled as a module)
  • PHP environment
  • OS version information, paths, master and local values of configuration options
  • HTTP headers
  • PHP license
Create a phpinfo.php file and insert the below code in that file 


<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
  1. Upload the file to the server. You should upload your file to the exact directory you want to test. Typically, this will be(/home/username/public_html)
  2. Visit the page in your browser. If you uploaded it to your html directory, you should now visit http://www.example.com/phpinfo.php, here example.com is your own domain name.
  3. Now you can view all of the information about PHP for your server for that particular directory.

No comments:

Post a Comment

Do Write about the Blog and Welcome to the world where open source is every thing :-)