Skip to content

Instantly share code, notes, and snippets.

@tux-tn tux-tn/vote.php
Created Nov 16, 2012

Embed
What would you like to do?
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";
}
?>
@MakremTN

This comment has been minimized.

Copy link

MakremTN commented Nov 16, 2012

$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
You can’t perform that action at this time.