2016年4月1日
摘要: <?php $filename = "view.html"; //不是必须的, 设置类型 header("Content-Type:text/html"); //当成附件来处理,浏览器就形成下载或打开,并告知文件名是什么 header("Content-Disposition:attachment; 阅读全文
posted @ 2016-04-01 21:24 奋斗的寒霜 阅读(156) 评论(0) 推荐(0) 编辑
摘要: <!--upform.html内容--> <form action="upload.php" method="post" enctype="multipart/form-data" > name: <input type="text" name="username" value="" /><br> 阅读全文
posted @ 2016-04-01 21:10 奋斗的寒霜 阅读(277) 评论(0) 推荐(0) 编辑
摘要: <?php /** file: fileupload.class.php 文件上传类FileUpload 本类的实例对象用于处理上传文件,可以上传一个文件,也可同时处理多个文件上传 */ class FileUpload { private $path = "./uploads"; //上传文件保存 阅读全文
posted @ 2016-04-01 21:08 奋斗的寒霜 阅读(254) 评论(0) 推荐(0) 编辑
摘要: <!--upload.php文件内容--><?phpheader("Content-Type:text/html;charset=utf-8");/* //原来$_FILES的内容Array( [pic] => Array ( [name] => Array ( [0] => 175_2426_3e 阅读全文
posted @ 2016-04-01 20:49 奋斗的寒霜 阅读(322) 评论(0) 推荐(0) 编辑