关于php下载问题~~~ header("Content-type: text/plain");?~~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 哪里可以查到Content-type:的列表? Mon May 29 09:21:27 2006 正在连接 172.16.146.244 [IP=172.16.146.244:80]Mon May 29 09:21:27 2006 已连接.Mon May 29 09:21:27 2006 GET /bt/page_getfile.php HTTP/1.1Mon May 29 09:21:27 2006 Host: 172.16.146.244Mon May 29 09:21:27 2006 Accept: */*Mon May 29 09:21:27 2006 Referer: http://172.16.146.244/btMon May 29 09:21:27 2006 User-Agent: Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)Mon May 29 09:21:27 2006 Pragma: no-cacheMon May 29 09:21:27 2006 Cache-Control: no-cacheMon May 29 09:21:27 2006 Connection: closeMon May 29 09:21:27 2006 HTTP/1.1 200 OKMon May 29 09:21:27 2006 Date: Mon, 29 May 2006 01:21:27 GMTMon May 29 09:21:27 2006 Server: Micro$oft-IIS/6.67Mon May 29 09:21:27 2006 X-Powered-By: PHP/5.1.4Mon May 29 09:21:27 2006 Connection: closeMon May 29 09:21:27 2006 Transfer-Encoding: chunkedMon May 29 09:21:27 2006 Content-Type: application/exeMon May 29 09:21:27 2006 文件大小未知,无法多点传输.Mon May 29 09:21:27 2006 开始接受数据!Mon May 29 09:21:27 2006 关闭我已经发送了Mon May 29 09:21:27 2006 Content-Type: application/exe但是还是下载得到php $file_type=substr( strrchr( $row['file_real_name'], "." ), 1 ); $file_size=filesize(ROOT_PATH.'UploadFiles/'.$row['file_replace_name']); Header("Content-type: application/x-".$file_type); Header("Accept-Ranges: bytes"); Header("Accept-Length: ".$file_size); header("Content-Description: PHP3 Generated Data"); Header("Content-Disposition: attachment; filename=".$row['file_real_name']); readfile(ROOT_PATH.'UploadFiles/'.$row['file_replace_name']); flush(); 原来是 header("Content-Disposition: attachment; filename=".$srcfile);~~~~~~~~~~~~谢谢拉~~~~~~~~~~~~~~~~~~ PHP正则预搜索语法怎么写? 谁帮我看看我的建库建表代码有什么问题呗 Ubuntu下AMP配置出问题,火狐无法正常打开PHP 我想做一个图片库网站。请价绍一下好的源程序 很奇怪的问题:只能输英文,不能输中文 为什么不能显示输入框的内容? 请教高手:怎么安装windows xp下的apache啊!我已经被他给整的不行了!必有重谢!! ※ 着急求解决方法!!! 文件上传问题 急急急!!! 帮忙解决个问题,来的都给分 求助socket建立临时服务器的问题 在mysql数据库中建多少张表才不会影响到数据库的性能?建3000张表会不会有影响?
Mon May 29 09:21:27 2006 已连接.
Mon May 29 09:21:27 2006 GET /bt/page_getfile.php HTTP/1.1
Mon May 29 09:21:27 2006 Host: 172.16.146.244
Mon May 29 09:21:27 2006 Accept: */*
Mon May 29 09:21:27 2006 Referer: http://172.16.146.244/bt
Mon May 29 09:21:27 2006 User-Agent: Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)
Mon May 29 09:21:27 2006 Pragma: no-cache
Mon May 29 09:21:27 2006 Cache-Control: no-cache
Mon May 29 09:21:27 2006 Connection: close
Mon May 29 09:21:27 2006 HTTP/1.1 200 OK
Mon May 29 09:21:27 2006 Date: Mon, 29 May 2006 01:21:27 GMT
Mon May 29 09:21:27 2006 Server: Micro$oft-IIS/6.67
Mon May 29 09:21:27 2006 X-Powered-By: PHP/5.1.4
Mon May 29 09:21:27 2006 Connection: close
Mon May 29 09:21:27 2006 Transfer-Encoding: chunked
Mon May 29 09:21:27 2006 Content-Type: application/exe
Mon May 29 09:21:27 2006 文件大小未知,无法多点传输.
Mon May 29 09:21:27 2006 开始接受数据!
Mon May 29 09:21:27 2006 关闭
我已经发送了Mon May 29 09:21:27 2006 Content-Type: application/exe
但是还是下载得到php
$file_size=filesize(ROOT_PATH.'UploadFiles/'.$row['file_replace_name']);
Header("Content-type: application/x-".$file_type);
Header("Accept-Ranges: bytes");
Header("Accept-Length: ".$file_size);
header("Content-Description: PHP3 Generated Data"); Header("Content-Disposition: attachment; filename=".$row['file_real_name']);
readfile(ROOT_PATH.'UploadFiles/'.$row['file_replace_name']);
flush();
~~~~~~~~~~~~
谢谢拉~~~~~~~~~~~~~~~~~~