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
Post a Comment