Is it possible to pass through an image file from a remote URL, without downloading it to the local server?
I have a PHP script that tracks stats and then outputs an image via readfile(). Example:
<img src="http://example.com/image.php?img=1234">
I'd like to use a CDN to reduce load, and take advantage of geo-location services to serve images faster. So, the script needs to output the image straight from the CDN and not download it to the local server for output.
Any advice on how to achieve this? Is it possible? Thanks in advance!