$i"; $url = "http://u9.ro/"; $curl = curl_init(); //anti spam my ass :) // rand md5 string for every post preg_match_all("()s", $curl, $out); // litle edit on the string... not well format form preg match all :( $form_name = $out[1][0]; $form_name = substr($form_name, 0, -2); // curl pharams $post = "&longurl=http://blog.w2.ro/?page=$i &form_name=$form_name"; // ze curl send shit curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; PORN BOT 4000)"); // a good user_agent :) curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $post); curl_exec ($curl); curl_close ($curl); } ?>