readfile()에서 외부 URL을 사용할 수 있습니까?외부 URL의 PHP readfile()
header('Content-type: application/pdf');
header('Content-Transfer-Encoding: binary');
header('Content-Disposition: inline; filename="'.$file.'" ');
//header('Content-Length: ' . filesize("http:...z/pub/".$file.'.pdf'));
@readfile("http://...z/pub/".$file.'.pdf');
[RTM] (http://php.net/readfile) : "fopen 래퍼가 활성화되어 있으면 URL이이 기능으로 파일 이름으로 사용될 수 있습니다." ;-) – netcoder
'exec ("wget $ url -O $ filename")'할까요? – user583311