phpinfo() to Discover the PHP Version and Modules Installed on your Server<?php phpinfo(); ?>
If PHP is installed on your server that single line of code will print out a heap of detailed information about the version and configuration of PHP you have available. If it is not installed the page will be returned blank.
Further reading: About phpinfo() on PHP.net.
This work is licensed under a Creative Commons Attribution-Share Alike 2.0 UK: England & Wales License.