Determine the PHP version on your server

Determine the PHP version on your server

14 IT and IS Capstone Project Topics
14 IT and IS Capstone Project Topics

In this lesson, we are going to learn how to determine the PHP version running on our server using codes.

Just follow these simple steps:

  1. Open any text editor (notepad, notepad ++, etc.).
  2. Type the following code or better copy and paste the code on your text editor:
    <?php echo phpversion(); ?>
  3. Save the file as phpversion.php
    Note: make sure that the file extension is .php
  4. Upload the file to your web root.  Ex:  C:\wamp\www (for wamp users).
  5. Open your browser and type http://localhost/phpversion.php

Your browser will look like this: (it will display the PHP version that runs on your server)

phpversion

, ,

Post navigation

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.