This article describes how to use the phpinfo() function to view detailed information about the PHP environment, settings, and more.
View PHP settings with phpinfo Function
To use the phpinfo() function to view PHP settings:
Create a file that contains the following code:
<?php
phpinfo();
?>
Save the file as info.php or something similar.
Upload the file to your public_html directory.
Use your browser to go to http://example.com/info.php, where example.com represents your web site's domain name. The page displays a large amount of information about the PHP installation.