I've had trouble getting some php scripts to run on windows too.

When I first started online I did the usual thing ... went to GoDaddy ... and seeing as I didn't really know what Linux was back then I opted for a windows machine.

Luckily they have the option of switching OS so within a few hours I had my site on a Linux machine and the php script ran perfectly

Richard