使用php获取图像服务器端没有CURL和ftp_get

问题描述:

我有一个IP关联的ftp访问主机,说ftp.host.com,我需要显示在PHP页面(托管在别的地方)一些图像托管在ftp站点使用php获取图像服务器端没有CURL和ftp_get

由于IP策略,网站php页面是唯一允许访问ftp.host.com的页面。

当然,如果我叫与“呼叫客户端,而不是服务器完成的图像,因此它失败,因为知识产权政策。

我如何可以调用图片来自服务器端?我可以”这里描述的,因为众所周知的FTP通过NAT PHP错误的T选用卷曲也不FTP_GET:

http://www.elitehosts.com/blog/php-ftp-passive-ftp-server-behind-nat-nightmare/

而且因为它是一个托管服务器上,所以我的想法,我不能打补丁的PHP

任何想法都会很大ppreciated!

这可能为你工作getimagesize()readfile()

$remoteImage = "http://www.example.com/gifs/logo.gif"; 
$imginfo = getimagesize($remoteImage); 
header("Content-type: $imginfo['mime']"); 
readfile($remoteImage); 
+0

感谢,但没有,我想它已经,但它失败就像ftp_get,卷曲,get_file_contents等,都因为(我想)的PHP错误我联系。 – Carmine