Hi, I have been playing around with an old auto submitter script.

I added a function to see if the sites in the list are online before submission, so they would be automatically unticked if they were not online:



This is the function i used:
Code: 
function Visit($url)

{

$agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";$ch=curl_init();

curl_setopt ($ch, CURLOPT_URL,$url );

curl_setopt($ch, CURLOPT_USERAGENT, $agent);

curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt ($ch,CURLOPT_VERBOSE,false);

curl_setopt($ch, CURLOPT_TIMEOUT, 5);

$page=curl_exec($ch);

//echo curl_error($ch);

$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

curl_close($ch);

if($httpcode>=200 && $httpcode<300) return true;

else return false;

}
But it takes a very long time to load even with just ten or so sites using this method.. Is there any faster way to do this???
DEViANCE Reviewed by DEViANCE on . Fastest Way To Check If A Site Is Up?? Hi, I have been playing around with an old auto submitter script. I added a function to see if the sites in the list are online before submission, so they would be automatically unticked if they were not online: http://www.besthostingforums.com/images/cdn/besthostingforums.com/2009/09/149.jpg This is the function i used: function Visit($url) { Rating: 5