Creating PHP files

How to create a phpinfo.php file within your account

Sometimes you need to know information regarding your server and a phpinfo.php file will provide you the means to achieve this. We recommend that you remove this file once you are done using it. The file will provide you or your developer information about what version your server uses for things such as PHP, Nginx, Apache, etc.

For cPanel users, log into cPanel and select File Manager under the Files menu. Then you can create the file directly from your user interface. Within the root directory of your website, create a file called phpinfo.php.

Once you have the file created, place the following text:

<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>

Save changes and upload your file or close your file manager. To access the information, use yourdomain.com/yourfilename.php and you will see your server PHP settings.

Choose From Various Web Hosting Plans

Custom Dedicated Web Servers