was successfully added to your cart.

How to create phpinfo page

By September 5, 2015 Our Blog No Comments

PHP has many environmental variables that you are able to configure as needed. For example, you may need to update your php memory_limit to prevent certain scripts from running out of memory. In order to change these values, you must first be able to see what they are. You can get specific server configuration by making and running a phpinfo file from your server.

With a simple text editor (such as Notepad++), create a new phpinfo.php file containing only this following code:

[code] <? phpinfo(); ?>

Upload this page to your httpdocs (public_html) folder on your server, and call it with your Internet browser http://YourDomain.com/phpinfo.php.
Now a page should be displayed telling you the PHP version installed on your server, server information and environment (if compiled as a module), the PHP environment, paths, master and local values of configuration options, HTTP headers, and the PHP License etc.

IMPORTANT! For security reasons, you should not leave this file in place after you have retrieved the information, nor should have it accessible (linked) to the general public.

Leave a Reply

Click to Get Full Access to our entire collection for only $69! Get Access Today