Please can you help me:
I am trying to fetch the website www.politie.nl/Gooi_en_Vechtstreek/ but when I run the script the response is this error:
Warning: Variable passed to each() is not an array or object in /home/homedeal/domains/inheiloo.nl/public_html/snoop.php on line 11
With other URLs the script works well. Does anyone know what the cause of this response is. And how to solve ?
The code used is:
$snoopy = new Snoopy;
$snoopy->agent = "(compatible; MSIE 4.01; MSN 2.5; AOL 4.0; Windows 98)";
$snoopy->referer = "";
while (list($key,$val) = each($snoopy->headers)) echo $key.": ".$val."<br/>\n";
echo "no fetch";
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.