Programming/PHP(8)
-
index.php 삭제하기
httpd.conf 파일의 AllowOverride 부분을 All로 수정. AllowOverride 부분이 부분적으로 몇개 있을건데, 아래 주석처리로 인해 덩그러니 홀로 있는 부분을 수정해줘야 함. # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # # AllowOverride None AllowOverride All index.php에 .htaccess 파일을 생성해라. RewriteEngine On RewriteBase / Rewr..
2015.09.09 -
엑셀 다운로드 header 방식
웹 소스 맨 상단에 추가 해줌. header("Content-Type: application/vnd.ms-excel");header("Content-Disposition: attachment; filename=test.xls");header("Content-Description:PHP4 Generated Data"); 아래와 같은 헤더도 있으나, 현재까지는 위 3개로만으로도 다운이 가능하다.header("Content-Type: application/octet-stream");header("Content-Type-Description: File Transfer");header("Expires: 0");header("Cache-Control: must-revalidate, post-check=0,pre-c..
2015.08.26