How to find out the version of PHP, installed PHP components and the Operating System version on a server

Just a quick tip to let you know that you can find the version of PHP, and the PHP components installed on the server by just creating a blank php file and writing this into it:(of course, you would need to be able to access the server via some transport protocol for this to work)

<?php phpinfo(); ?>

phpinfo2

 

If you’ve done PHP programming before, you probably know about this already, but if you’ve been asked to analyze/fix/modify some parts of a site that you have no knowledge of; it might be worthwhile to first know about  these versions and the components installed. It gives the operating system details as well along with other information.

1 Comment

  1. Cledayplece said,

    November 25, 2009 at 4:59 am

    Wow loved reading your article. I submitted your rss to my reader.


Post a Comment