I have installed xampp server in windows 7. I have already checked Browser its working.But I am trying to run the php -v command prompt. I receive the following error message.
Add the php folder to your path and restart cmd.
Use this command from the command line (use the path to the php.exe, it is usually under c:\xampp\php
):
set PATH=%PATH%;C:\xampp\php
This pops up if Windows doesnt know about php
. To solve this you have to add the full path to the php.exe to your PATH
-variable in windows.
After you restart the console php should be available.
Add the full path to find the folder, for example: c:\xampp\php\php.exe -v or c:\xampp\php\php.exe -version