Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-25-2004, 03:11 PM   #1
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
Old 03-25-2004, 03:24 PM   #2
AvanteGuard
Confirmed User
 
Join Date: Jan 2004
Location: Cortland, OH
Posts: 451
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?
__________________
Looking for Fast Professional Programming? http://www.imadigan.com
ICQ: 314-942-262 | MSN/Email: [email protected]
AvanteGuard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-25-2004, 03:34 PM   #3
whee
Confirmed User
 
Join Date: Sep 2002
Location: http://www.nightstation.com
Posts: 1,375
Quote:
Originally posted by AvanteGuard
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?
Yes, I see now. Thank you. All I want is to grab the full pictures on the galleries. I think I use the wrong approach.
Also it's a bad example with the non-working one. It's links to movies.
__________________
http://www.nightstation.com

Last edited by whee; 03-25-2004 at 03:36 PM..
whee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.