-1
CSV 파일을 어떻게 특정 디렉토리에 다운로드 할 수 있습니까? 지금이 코드, 여기PHP에서 지정된 디렉토리에 파일을 다운로드하는 방법은 무엇입니까?
header("Location:uploads/".$dire);
header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=".$nn);
header("Pragma: no-cache");
header("Expires: 0");
을 사용 $dire
업로드 폴더의 하위 디렉토리이고 $nn
은 csv 파일 이름입니다. 이 $nn
파일을 다운로드하고 지정된 디렉토리 $dire
에 저장하고 싶습니다. 하지만 오류가 표시됩니다.
미리 감사드립니다.
클라이언트가 다운로드 위치를 제어하려는 경우 PHP로는 불가능합니다. – dbf