image files doesn't load

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

image files doesn't load

Post by pleigh »

hi there...why is it that when i call a link

Code: Select all

include('http://www.somesite.com');
the page loads but the image files doesn't show up...how can i make it visible??

thanks in advance..
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

The site must have stopped image hotlinking - from stealing bandwidth.
http://altlab.com/hotlinking.html
http://underscorebleach.net/jotsheet/20 ... ess-apache
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

It's much more likely that the site in question is simply using relative urls for the image links. You'll need to parse the result of your include to either turn the relative urls into absolute ones, or download all the images from the site to your own server.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

just make sure that the images are avialable for use on your own site and that the site in question doesn't mind.
Post Reply