ntf ntf - 4 months ago 7
PHP Question

Php version on windows command line

I just tried to know version of my PHP from windows command typing,

C:\> php -v

But it is not working. It says
php is not recognized as internal or external command
.

Answer

in command prompt type below

set PATH=%PATH%;C:\path\to\php

Where C:\path\to\php is the folder where your php.exe file is located. After this run

C:\>php -v

than you will see something like

PHP 5.4.9  (cli) (built: Dec 12 2012 07:06:13 )