ntf ntf - 11 months ago 29
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


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 )