<?
$file_name = 'test.html';
if(strstr($HTTP_USER_AGENT, "MSIE 5.5")) {
header("Content-Type: doesn/matter");
header("Content-Disposition: filename=$file_name");
header("Content-Transfer-Encoding: binary");
header("Pragma: no-cache");
header("Expires: 0");
}
else {
Header("Content-type: file/unknown");
Header("Content-Disposition: attachment; filename=$file_name");
Header("Content-Description: PHP3 Generated Data");
header("Pragma: no-cache");
header("Expires: 0");
}
?>

'php > Tip&Tech' 카테고리의 다른 글

php 함수목록  (0) 2013.06.02
php db connection class 범용  (0) 2011.09.27
.php 확장자를 .html로 쓰기위해  (1) 2011.08.12
PHP DBConnection 클래스  (0) 2011.07.28
PHP 페이징 기법  (0) 2011.07.27

+ Recent posts