0
나는 웹 개발자입니다.다운로드 경로를 PHP로 설정하는 방법
DownloadController.php 나는 'file.zip'및 다운로드 경로 다운로드 희망
$local_file = 'file.zip';
$download_file = 'd:\temp\download.zip';
if(file_exists($local_file)) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.basename($local_file).'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($local_file));
readfile($download_file);
}
:
누구든지 나를 도울 거라고 \ 임시 \의 download.zip '을! 감사합니다.