ntf ntf - 1 year ago 128
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 Source

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 )    
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download