if you are getting "connection reset by peer". try running it NOT from your brower. just drop it in the same dir as php.exe and run from there. or add:
/ Prevent Script Stopping. / ignore_user_abort(true); set_time_limit(0);