Skip to content

Instantly share code, notes, and snippets.

@tux-tn
Created November 16, 2012 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tux-tn/4087293 to your computer and use it in GitHub Desktop.
Save tux-tn/4087293 to your computer and use it in GitHub Desktop.
ExpressFM mass vote
<?php
$i = 0;
while(1==1){
$vote = array ('radio' => '120'); // replace 120 by the value of the vote
$query = http_build_query ($vote);
$data = array (
'method' => 'POST',
'header' => "Connection: close\r\n".
"Content-Length: ".strlen($query)."\r\n".
"Content-type: application/x-www-form-urlencoded\r\n",
'content'=> $query );
$context = stream_context_create (array ( 'http' => $data ));
$result = file_get_contents ('http://www.radioexpressfm.com/ExpressBackEnd/vote.php', false,$context);
$i++;
echo "Vote $i done !\r\n";
}
?>
@0xMakrem
Copy link

$n = 5;
$i = 0;
while($i < $n)

and

echo "Vote $i done !";
echo '
';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment