On Windows XP goto
Control Panel > System > Advanced > Environment Variables > System Variables > Edit > Variable value
And at the end of the current contents add a semicolon followed by your path to php
Control Panel > System > Advanced > Environment Variables > System Variables > Edit > Variable value