This article describes about creating a phpinfo.php file on your site. You can use a phpinfo() page to view the current PHP information for your server such as:
- Information about PHP compilation options and extensions
- PHP version
- Server information and environment (if compiled as a module)
- PHP environment
- OS version information, paths, master and local values of configuration options
- HTTP headers
- PHP license, etc.
How to Create phpinfo.php File?
Its very easy to create a phpinfo.php file. Just open any text editor you use on your computer (Notepad/Edit Plus in Windows or Sublime, Gedit on Linux) and add the following line, and save the file as phpinfo.php
Upload the file to your Server/Site.
Upload the file in the public_html directory of your site. Refer this tutorial about uploading a file using cPanel File Manager.
Checking the PHP information in the browser
Now open the URL “http://yourdomain.com/phpinfo.php” on a browser and you will be showing all PHP related information of the folder. You should see a similar view when a file is accessed via browser: