- Open the System Properties dialog in the Windows Control Panel and open the Advanced tab.

- Click the Environment Variables button.
- Under the System variables control scroll down and select the Path variable.
- Click the Edit button.
- Enter the path to the PHP directory in the Variable value field
of the Edit System variable dialog box. Put it at the beginning of
the string and use a semi-colon to seperate the values.

- Click the OK button on each of the dialog boxes to close them.
- You will need to restart the web server to apply the changes, but that can wait until you've finished the other PHP configuration.