上一页 1 ··· 5 6 7 8 9
摘要: //上传excelpublic function uploadExcel(){ //获取当前的请求信息,或者使用助手函数request() $request = \think\Request::instance(); //引入导入Excel第三方库 vendor('PHPExcel.Classes. 阅读全文
posted @ 2019-05-17 10:53 ymd666 阅读(937) 评论(0) 推荐(0) 编辑
摘要: <?php //获取1.html文档的内容(包括html代码)$result = file_get_contents('./1.html');echo "$result"; // /////////////////////保存/////////////////////////////打开缓冲区 ob 阅读全文
posted @ 2019-05-17 09:20 ymd666 阅读(1328) 评论(0) 推荐(0) 编辑
摘要: <?php/** * 关于文件压缩和下载的类 * @author tycell * @version 1.0 */namespace app\index\controller;use think\Controller;use think\Db;use think\Loader;use think\R 阅读全文
posted @ 2019-05-16 15:48 ymd666 阅读(639) 评论(0) 推荐(0) 编辑
摘要: public function index(){ //打开缓冲区 ob_start(); //设置为一个下载类型 header("Content-type:application/octet-steam"); //可以请求网页实体的一个或者多个子范围字段 header("Accept-Ranges: 阅读全文
posted @ 2019-05-16 14:46 ymd666 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 作用:Keep-Alive:使客户端到服务器端的连接持续有效,当出现对服务器的后继请求时,Keep-Alive功能避免了建立或者重新建立连接。Web服务器,基本上都支持HTTP Keep-Alive。 缺点:对于提供静态内容的网站来说,这个功能通常很有用。但是,对于负担较重的网站来说,虽然为客户保留 阅读全文
posted @ 2019-05-16 10:50 ymd666 阅读(961) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9