This is how you can add PHP directory to the PATH on Windows?
On Windows 2000, NT, XP and 2003:
First you go to Control Panel and open the System icon (Start -> Settings -> Control Panel -> System, or just Start -> Control Panel -> System for Windows XP/2003)
Now go to the Advanced tab
Click on the 'Environment Variables' button
Look into the 'System Variables' pane
Find the Path entry to find it you may need to scroll
Double click on the Path entry
Enter your PHP directory at the end, including ';' before (e.g. ;C:\php)
Press OK and restart your computer
On Windows 98/Me you have to edit the autoexec.bat file:
Open the Notepad (Start -> Run and enter notepad)
Open the C:\autoexec.bat file
Locate the line with PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;..... and add: ;C:\php to the end of the line
Save the file and restart your computer
Note: It is necessary to Reboot after these steps to see the changes.
|