After installing wamp, i try to check the php version in user running command prompt
C:\Users\jagannathanv> php -v
“php.exe’ is not recognized as an internal or external command, operable program or batch file”
But the same its working when i change the path in command prompt to “C:\wamp\bin\php\php5.4.3\”
In CMD:-
cd C:\wamp\bin\php\php5.4.3\
C:\wamp\bin\php\php5.4.3\>php -v
PHP 5.4.7 (cli) (built: Sep 12 2012 23:48:31)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
Cause :- PHP is not included in your PATH.that is in Environment Variables
Solution :-
- Take System Properties (Right click your My Computer, then Properties)
- Advanced System Settings --> Environment Variables ---> system variables
- Edit the PATH variable, add your PHP installation directory (C:\wamp\bin\php\php5.4.3)
- Restart the PC
No comments:
Post a Comment