Page 1 of 1

readfile() on external images effect on bandwidth?

Posted: Sat Sep 16, 2006 2:20 am
by cdunn
Hello everyone!

If I am reading jpegs off an external site (like flickr), will something like the following actually use my bandwidth for loading the image?...I guess the better way to say it is, does the image actually go through my server if I do this?

<?
$path = $_GET['image'];
header("Content-type: image/jpg");
@readfile($path);
?>

Cheers!
Cary

Posted: Sat Sep 16, 2006 2:26 am
by volka
cdunn wrote:If I am reading jpegs off an external site (like flickr), will something like the following actually use my bandwidth for loading the image?
does it use the provider's internet capacity ? Yes it does.

Posted: Sat Sep 16, 2006 10:10 am
by cdunn
thanks for the reply!

by internet providers capacity, you do mean my webhost correct?

Posted: Sat Sep 16, 2006 2:09 pm
by volka
Yo. They have to pay for incoming/outgoing traffic, too. And therefore they probably will take incoming traffic (such as reading the image data from another external host) into account. If you want to be sure ask your webhoster.