Created
November 16, 2012 13:17
-
-
Save tux-tn/4087293 to your computer and use it in GitHub Desktop.
ExpressFM mass vote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$n = 5;
$i = 0;
while($i < $n)
and
echo "Vote $i done !";
echo '
';