Home > PHP

How to Generate a phpinfo() page

This is both a very simple, and very useful page to have on hand for a review of your LAMP environment. Simply create a PHP page with the following code; the function phpinfo() is called which in turn generates an outline of your environment. This is a common page to see referenced in subject matter relating to PHP for identifying what is configured/enabled. The name of the file itself is not important; I use phpinfo.php.