How to check your PHP information

When designing and building a website you may find that you need to make checks to your PHP to find what version of PHP you have as well as other useful information, especially if you made changes to your PHP core directives and would like to see if they have taken effect.

This guide will show you how to create the file you will need to be able to access this information.

Let’s get started…

To be able to view your PHP information you will need to create an info.php file which you can create using a text editor like Notepad, Wordpad, or Textedit.

Start with an empty text file and add the following lines:

phpinfo ([ int $what = INFO_ALL ] ) : bool

Save the file, entering the file name as: info.php

After you’ve created the info.php file, you will need to upload it to your hosting using FTP. We have a guide on how to upload files via FTP here.

Once uploaded you can now view your PHP information by visiting your domain followed by /info.php e.g. (replace with your own.)

When viewing your PHP information, you will find two columns under Configuration, Local Value and Master Value. The local value is your current site’s values, master is the servers default values. If you make changes such as your PHP directives you will be able to see this by comparing these two columns.

That’s it! You should now be able to see all your information for your PHP and review any changes you may have made.

Was this article helpful?

Check out some of our related guides

Need a hand? Search over a hundred step-by-step support guides