How do I check what php version is on my server and other environment settings?

Requested and Answered by Carnuke on 2005/1/24 20:16:58

How do I check what php version is on my server and other environment settings?

Create a file with this code in it:

<?php phpinfo() ?>
Save it as a .php file and call it something like 'checkit.php'. Now upload it to your server. Browse to the file. If you placed it in your web root directory, it would be accessed as:http://example.com/checkit.php Your detailed PHP settings will be displayed. The information displayed may be useful to people trying to hack your site, so you should: 1) Save the output and then delete the script; or 2) Protect or hide the script so that others cannot access it.

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=376