开发者

How to output image via php from another domain

Image tag inside email message:

<img src="http://www.mydomain.com/image.php?lastest=1">

Part of image.php script开发者_开发百科:

case 'image/gif': header('Content-type: image/gif');$img=@imagecreatefromgif($image['src']);if($img) {imagegif($img);imagedestroy($img);}
break;

But how i can do the same with this image?

http://www.anotherdomain.com/image.gif

Thanks.


Using .htaccess and redirecting the request, with something like:

RewriteRule image.gif$ /image.php?lastest=1 [l]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜