1st of all, i would suggest u to upgrade to win 2000 professional or XP professional with IIS installed.
2ndly, in win ME, install PHP in C:/PHP folder. Then go to advanced properties of PWS and click cgi-bin and click "Edit Properties" Point the directory to "C:/PHP" & select all 3 options, i.e. Run, Execute etc. Then, test your script.