이미지 다운로드가 작동하지 않습니다. 그것은 직접 다운로드하지 읽습니다.이미지 다운로드가 작동하지 않습니다. 그것은 바로 읽기
if($_REQUEST['image'] == true){
$URl = $post->guid;
echo $URl;
header("Content-Type: image/png");
header('Content-Description: File Transfer');
header("Cache-Control: no-cache, validated");
header('Content-Type: application/octet-stream');
header("Content-Disposition: attachment; filename=\"".basename($URl)."\"");
header('Content-Transfer-Encoding: binary');
var_dump(readfile($URl));
die;
}
는 [변수는 대소 문자를 구분 (http://php.net/manual/en/language.variables.basics.php). '$ URl'을'$ URL'로 변경하십시오 (Ls?에 주목하십시오). – Josh
나는 그랬지만 작동하지 않았다. ... – ayyan
"작동하지 않는 것"은 무엇인가? – zerkms