$theurl contains an url to a freehosted gallery.
Now, for some reason which I cant figure, the below code only works for some hosted galleries and not for others.
-----------------------
$f = file_get_contents("$theurl", "r");
$file = strtolower($f);
$lines = split("\n", $file);
$i=0;
foreach($lines as $line)
{
if(preg_match("/href=[\"|']([^\"|']+.jpg)|([^\"|']+.jpeg)/", $line, $matches))
{
echo $matches[1] . "\n";
$ff[$i]=$matches[1];
$i++;
}
}
The working gallery:
http://www.adultaffiliateservices.co...dex.php?433868
the not working gallery:
http://galleries.18blowjobs.com/mpeg/36hotass/?1285
What's wrong here, someone guide me in the right direction please!