摘要: header("Content-type:application/octet-stream");header("Accept-Ranges:bytes");header("Content-Type:application/force-download");header("Content-Disposition:inline;filename=".$filename);header("Accept-Length:".filesize($File));@readfile($File);//读取文件到 阅读全文
posted @ 2011-08-23 16:59 春哥也编程 阅读(3135) 评论(4) 推荐(2)
摘要: 这个是对单文件上传的补充,只要是让大家知道有这么回事没有对安全等考虑的很全面,请大家修正,谢谢单文件index.php<form atcion="action.php" method="post" enctype="multipart/form-data"> <input type="file" name="fileField1" /></form>当需要上传二进制文件时,记得 enctype="multipart/form-data"&l 阅读全文
posted @ 2011-08-23 16:50 春哥也编程 阅读(1870) 评论(0) 推荐(0)