PHP/¥µ¥ó¥×¥ë/²èÁü½ÐÎÏ
Last-modified: 2018-11-14 (¿å) 15:23:57 (2214d)
²èÁü¥Õ¥¡¥¤¥ë¤ò¥Ö¥é¥¦¥¶¤ËÊÖ¤¹¥µ¥ó¥×¥ë¡£
$filename = "sample.jpg"; header("Content-type: image/jpeg"); header("Content-Length: " . filesize($filename)); $fp = fopen($filename, "rb") or die(); print fread($fp, filesize($filename)); fclose($fp);