PHP를 사용하여 Excel 파일을 만들고 있습니다. PHP는 파일을 생성하지만 파일의 사용 권한은 '읽기 전용'으로 설정됩니다. 사용자가 파일을 편집 할 수있는 권한을 갖고 싶습니다. 서버에 새 파일을 만들지는 않습니다. 다른 모든 파일이 실패 할 경우 해당 옵션을 예약하고 싶습니다.브라우저로 플러시 출력에 대한 사용 권한을 변경하는 방법은 무엇입니까?
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");;
header("Content-Disposition: attachment;filename=$filename ");
header("Content-Transfer-Encoding: binary ");
$out = ob_get_clean();
echo $out;
xlsEOF();
exit();
콘텐츠 유형 헤더가 3 개 있지만 Excel 문서의 경우 'application/vnd.ms-excel'이어야합니다. – Quentin
잘 Quentin 발견, 고마워. – Conor