读取远程图片直接输出
$url = $_GET['url'];$url = $url . '?t=' . time(); $headers = get_headers($url, 1); $fileSize = $headers['Content-Size']; $contentType = $headers['Content-Type']; header('Content-Type: ' . $contentType); header('Content-Length: ' . $fileSize); readfile($url);