首页 > 技术文章 > 通过 file_get_contents 输出图片

RainLi 2016-09-19 19:57 原文

$url='http://static.assets.local.51rwb.com/caibeitv/html/caibeitv_hao/dev/images/logo.png';
$content= file_get_contents($url,true);
header("Content-Type: image/jpeg;text/html; charset=utf-8");
echo $content;die;

推荐阅读