How to find PHP version through command prompt in windows?

How to find PHP version through command prompt in windows?



This question may get asked in PHP interview.

You just need to find out where is your PHP folder. If you are using XAMPP or WAMP then you will see a php folder. You just need to go into the php folder as:
 xampp -> php
wamp -> php

Now open command prompt here, And then just type in this command as :

   C:\xampp\php>php -v

    Then you will see something like:

PHP 5.5.19 (cli) (built: Nov 12 2014 12:35:44)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies


C:\xampp\php>

Your command prompt window should like this:


----
Keep reading, keep learning.

No comments:

Post a Comment

We are here to listen you, Comment your valueable opinion...!!!