View PHP settings with phpinfo Function

During web development, you must often verify PHP settings. This may be performed by running a script that uses the phpinfo() function. When you open the page in a web browser, the script displays all of your website’s PHP setup information.

To use the phpinfo() function to view PHP settings:

  1. Create a file and copy the following code into it:
    <?php
        phpinfo();
    ?>
  2. Save the file as info.php or something similar.
  3. Upload the file to your public_html directory in your StackPanel.
  4. Now from your browser, enter the following in the address bar; http://example.com/info.php, [remember to replace example.com with your own domain name]. You will then be presented with a large amount of information about the PHP installation together with all available extensions.

 

For security reasons, you should disable any calls to the phpinfo() function when web site development 
and testing is complete.