View Single Post
Old 03-25-2004, 03:11 PM  
whee
Confirmed User
 
Join Date: Sep 2002
Location: http://www.nightstation.com
Posts: 1,375
PHP gurus, help me out here

$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!
__________________
http://www.nightstation.com

Last edited by whee; 03-25-2004 at 03:15 PM..
whee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote