# PHP: serving jpegs via changing headers

**URL:** https://forum.kirupa.com/t/php-serving-jpegs-via-changing-headers/200890
**Category:** programming
**Created:** [September 16, 2006, 5:57am UTC](https://forum.kirupa.com/t/php-serving-jpegs-via-changing-headers/200890 "2006-09-16T05:57:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![cdunn](https://avatars.discourse-cdn.com/v4/letter/c/e68b1a/32.png) [@cdunn](https://forum.kirupa.com/u/cdunn)
#### Post date: [September 16, 2006, 5:57am UTC](https://forum.kirupa.com/t/php-serving-jpegs-via-changing-headers/200890/1 "2006-09-16T05:57:36Z")

</div>

If I am reading jpegs off an external site, will something like th 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
