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.

Advertisements

2 Comments

  1. Cledayplece said,

    November 25, 2009 at 4:59 am

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

  2. September 23, 2010 at 9:37 pm

    It is very shorten way to check version. Aha….great tip.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: