Viewing your PHP settings Print

  • php
  • 83

This article provides information on how to use the phpinfo() to find our details regarding your php environment, settings and variables, all very important, especially for developing or troubleshooting.

Please note that allowing others to see your phpinfo() output may pose a security risk and should be disallowed when you are not actively developing your website.

In order to view the php environment details, you would need to create a file with the following code:

<?php
         phpinfo();
?>

After doing this, just save as a php file, like example.php and place it in your public_html folder.

In order to view your php variables, just go to http://yourwebsite.com/example.php and check your results.


Was this answer helpful?

« Back