如何通过php从另一个域输出图像

如何通过php从另一个域输出图像,php,image,Php,Image,电子邮件中的图像标记: <img src="http://www.mydomain.com/image.php?lastest=1"> 但是我怎么能对这张照片做同样的事情呢 http://www.anotherdomain.com/image.gif 谢谢。使用.htaccess并重定向请求,例如: RewriteRule image.gif$ /image.php?lastest=1 [l] 是的,我也在考虑重定向。我会检查它是否工作。 RewriteRule image.g

电子邮件中的图像标记:

<img src="http://www.mydomain.com/image.php?lastest=1">
但是我怎么能对这张照片做同样的事情呢

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

谢谢。

使用.htaccess并重定向请求,例如:

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

是的,我也在考虑重定向。我会检查它是否工作。
RewriteRule image.gif$ /image.php?lastest=1 [l]