Here is a fully working PHP page viewer, set the variables $pages[] = "ANY URL HERE"; to suit your needs, and change the variable $max = 10; to however many views you want for each $page.
-Echo
Related Article:how I get city id from a php page
is a PHP discussion thread by Tharanga05 that has 14 replies, was last updated 1 year ago and has been tagged with the keywords: php.
<?php
$max = 10; // Set this to how many views you want per page
$time_to_wait = 3; // Time between views
set_time_limit(0);
$pages[] = "http://www.google.co.uk/"; // Copy and paste this line and change the link inside the quotes to just the plain video link nothing else.
$pages[] = "http://www.daniweb.com/";
foreach($pages as $page)
{
$view_counter[$page] = 0;
while($view_counter[$page] < $max)
{
$view_counter[$page] ++;
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $page);
curl_setopt($curl, CURLOPT_FAILONERROR, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 5.1; rv:15.0) Gecko/20121004 Firefox/15.2 PaleMoon/15.2"); // So you don't annoy google
$return = curl_exec($curl);
if($return)
{
echo "Success ($page): ".$view_counter[$page]."! <br />";
}
else
{
echo "Failure ($page): ".$view_counter[$page]."! <br />";
}
sleep($time_to_wait); // Allow a break to stop blacklisting
}
}
?>