If you need to confirm the version of PHP running on your server, find out whether specific PHP features are enabled, and / or check on memory allocation limits - you do this by running phpInfo().
One easy way to do this is:
- Create a new file - you can call it phpInfo.php - and type the following code in the file:
- Save or upload this file to a location below your website root.
- Load the file in your browser.
You should see a page starting with the PHP logo and the version running on your server - followed by several tables with complete configuration information.
For security reasons, the file created in these instructions should not be left on your server. Otherwise you are revealing to the malicious info about the capabilities of your server. After you have used it, move it back out of your web space.