You often need to check PHP settings during web development. You can do this by running a script that calls the phpinfo() function. When you load the page in a web browser, the script shows all of the PHP configuration settings for your web site.
Step 1: Create a file that contains the following code:
<?php
phpinfo();
?>
Step 2: Save the file as info.php or something similar.
Step 3: Upload the file to your public_html directory.
Step 4: 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.
For security reasons, you should disable any calls to the phpinfo() function when web site development and testing is complete.