Hi,
We use this code to verify URLs from an import module:
function getTitle($Url){
$str = file_get_contents($Url);
if(strlen($str)>0){
preg_match("/\<title\>(.*)\<\/title\>/",$str,$title);
return $title[1];
//flush();
}
}
We call this like this:
echo "515,<b>Lens</b>," . getTitle( "http://?wi=&si=515&li=31951") ." , <a href= http://?wi=&si=515&li=31951>http://?wi=&si=515&li=31951</a><br>";
However, we have 600+ of these lines and it times out rather fast (after 10-30 records)
Fatal error: Maximum execution time of 60 seconds exceeded in admin\ajax\verify-urls.php on line 8
Is there a way to publish each X results to keep from timing out?
We truied adding flush() but that did not help. sleep() did not either.
Thanks in advance :quiet: