- Go to your desktop.
- Right click My Computer shortcut in the desktop.
- Click Properties.
- You should see a section of control Panel - Control Panel\System and Security\System.
- Click Advanced System Settings on the Left menu.
- Click Enviornment Variables towards the bottom of the window.
- Select PATH in the user variables list.
- Append your PHP Path (C:\myfolder\php) to your PATH variable, separated from the already existing string by a semi colon.
- Click OK
- Open your "cmd"
- Type PATH, press enter
- Make sure that you see your PHP folder among the list.
That should work.