How To Create A PHP Info Page:

To view your current PHP version , configuration and such, you will need to create a PHP info page.

Assuming your website is under /home/username/public_html:

  1. Create a new file under that directory. Name it something like phpinfo.php.
  2. Insert the following code into the file:
    <?php
    phpinfo();
    ?>
  3. Access the file through your browser like so: http://your-domain/phpinfo.php

Your current PHP configuration will be displayed. The values listed here can be helpful when you are troubleshooting a PHP-related issue.

  • Admin
  • Last modified: 2018/07/24 16:04
  • by Lisa Clarke