How to check php settings by using phpinfo on server?
Each server is setup differently whether it is a dedicated server or a virtual server, phpinfo() is commonly used to check configuration settings and for available predefined variables on a given web server.
phpinfo() is a valuable debugging tool as it contains all the data, information related to environment, GET, POST, Cookie, Server etc.
To create the file simply add the following lines of code to a blank document.
<?php
phpinfo();
?>
Save the file as phpinfo.php and place it in the desired directory. Lastly, call the script from a browser.
http://www.your-own-website-example.com/folder/phpinfo.php
This php file will output detail information about the current state of PHP: PHP compilation options and extensions, the PHP version, server information and environment, the PHP environment, OS version information, paths, master and local values of configuration options, HTTP headers, and the PHP License as well.
Related: PHP Hosting, LAMP Server, cPanel Hosting