where is ?
如果我想知道一个函数的用法, 我该从哪里杳一下啊? PHP有没...
作者 gasgas 发布于 2003-08-00 分类:php基础编程
http://www.tjc.gov.cn/ShenBao/doc/shenqing.doc
逛论坛交流:这个怎么做的
用header输出
能不能写一个完整的例子
直接用html页面转向可能以吗?
<?php
header("Content-type: application/x-gzip");
header("Content-Disposition: attachment; filename=./1.mp3");
header("Content-Description: PHP3 Generated Data");
?>
if (is_file($file)){
if(eregi("(MSIE 5.5 | MSIE 6.0)", $HTTP_USER_AGENT)){
Header("Content-type: application/octet-stream");
Header("Content-Length: " . $filesize); //
Header("Content-Disposition: $dn_yn; filename=$savename");
Header("Content-Transfer-Encoding: binary");
Header("Pragma: no-cache");
Header("Expires: 0");
}
else{
Header("Content-type: file/unknown");
Header("Content-Length: " . $filesize);
Header("Content-Disposition: $dn_yn; filename=$savename");
Header("Content-Description: PHP3 Generated Data");
Header("Pragma: no-cache");
Header("Expires: 0");
}
$fp = fopen("$file", "$bin_txt");
if(!fpassthru($fp))
fclose($fp);
}
请问 你的EP是怎么和WEB服务器连接上的 ???????
h
THX 多谢指教 :)
8 条回复
回复