PHP: Create a PHPInfo File
Often times you need to find out specific server configuration information is needed in order to install and run a specific web application or script, or just to troubleshoot your server in general. You can easily create a phpinfo file to access a great deal of this info in just a few simple steps.
Creating PHPInfo via File Manager
Log into your File Manager.
1) Using the file tree on the left, browse to the folder you wish to add the PHP info file to. We are going to use the public_html folder in this example.
6) Copy and Paste the following code into the editor.
We will now enter the address of the file in our web browsers in order to get the necessary PHP information. If you created the info.php right within your public_html folder then we know we can enter the URL as follows.
http://www.yourdomain.com/info.php (where yourdomain.com is your domain)
If you created the file in another folder within public_html, you would include the folder name in the URL you enter.
When you are successful you will see a page with a header similar to the one below that will go on to tell you a wealth of information.
That’s it! You now know how to create a php info page from within your control panel.
Create using FTP
In this article we will show you how to create and upload a php info page.
For this article, we will be using Windows. If you are using a different operating system, the steps may be slightly different but the method is the same. You will utilize the text editor and paste the following snippet of code into it and save it.
That’s it. You now know how to create and upload a php info file. For information on how to read the information presented to you, please click here.