fputs($fp,<<<EOD
GET /$brd/dat/$sid.dat HTTP/1.0
Host: $host
User-Agent: Monazilla/1.00 1000gex/0.9 (1000)
EOD
."\n\n");

ここをコメントにしてみれ