100000) { $randtext = "this is spam".++$counter."... i like spam 0.".(mt_rand(1000,1999))."% everyone\r\n\r\nlikes spam"; $boundary = ""; for ($i=0; $i 1));*/ fclose($sock); echo "Posted to thread $threadid\n"; } else echo "Error: [$errno] $errstr\n"; sleep(10); } else { /* echo "Error getting thread ID!\n"; $threadfails++; if ($threadfails > 10) { echo "Too many thread fails, sleeping...\n"; $threadfails = 0; sleep(300); }*/ echo "Got invalid thread ID, sleeping\n"; sleep(60); } //flush(); } } ?>