php - Pass through image from URL on dynamic script -


is possible pass through image file remote url, without downloading local server?

i have php script tracks stats , outputs image via readfile(). example:

<img src="http://example.com/image.php?img=1234"> 

i'd use cdn reduce load, , take advantage of geo-location services serve images faster. so, script needs output image straight cdn , not download local server output.

any advice on how achieve this? possible? in advance!

do tracking, send browser real location afterwards.

see: http://php.net/manual/en/function.header.php

<?php header("http/1.0 303 see other"); header("location: %the real uri%"); 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -