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 ex
C:\\> php -v
php is not recognized as internal or ex
It is most likely that php is not in your specified path.
Try to issue the php command with the full path, for example:
C:\> "C:\Program Files\php\php.exe" -v
Please note, that this is just an example, your php installation might be in a different directory.