![]() |
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! |
The working one has links to the larger pictures in it, the non-working one doesn't have any links to larger pictures in it...
So if those sites are the $theurl, then that is your problem, because you're searching for the link (href) which doesn't exist. Is that what you're looking for or did I read your question wrong? |
Quote:
Also it's a bad example with the non-working one. It's links to movies. |
All times are GMT -7. The time now is 12:16 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123