Find out your PHP directory (where you have php.exe), it should be something like "C:\Program Files\PHP".
Now go to Control Panel -> System -> Advanced -> Environment Variables and append that directory to the user variable PATH. Don't forget to add the semicolon.