08 2014 档案

摘要:php下載文件是通常使用readfile函數讀取文件進行下載,在遇到大文件下載的時候,往往不太適用,效率不怎麼樣。使用x-sendfile模塊則可以繞過php讀取文件的方式了,直接設置頭部信息就可以,利用服務器將文件發送到客戶端進行下載x-sendfile模塊apache服務器的配置設置xsendf... 阅读全文
posted @ 2014-08-22 16:39 timily 阅读(271) 评论(0) 推荐(0)
摘要:模擬了一下session跨域原理在本機上面做了以下測試http://localhost/test/test.php 在這個頁面裡面設置了session,通過另外一個域名來訪問這個session值,內容如下: 阅读全文
posted @ 2014-08-22 16:10 timily 阅读(260) 评论(0) 推荐(1)
摘要:1.MySQL基础操作 一:MySQL基础操作 1:MySQL表复制 复制表结构 + 复制表数据 create table t3 like t1; --创建一个和t1一样的表,用like(表结构也一样) inse... 阅读全文
posted @ 2014-08-14 15:18 timily 阅读(266) 评论(0) 推荐(0)
摘要:Permission is hereby granted, free of charge, to any person obtaininga copy of this software and associated documentation files (the"Software"), to de... 阅读全文
posted @ 2014-08-08 15:25 timily 阅读(180) 评论(0) 推荐(0)
摘要:$value) { $obj[$key] = get_object_vars_deep($value); } } return $obj;}/*斐膘砉涴欴腔脤戙: "IN('a','b')";* * @param mix $item_... 阅读全文
posted @ 2014-08-08 15:23 timily 阅读(175) 评论(0) 推荐(0)
摘要:* Victor Stanciu (until v.1.0) * @license http://www.opensource.org/licenses/mit-license.php MIT License * @link Official p... 阅读全文
posted @ 2014-08-08 15:12 timily 阅读(288) 评论(0) 推荐(0)
摘要:load->library('Download');if(!$this->download->->downloadfile($filename)){ echo $this->download->geterrormsg();}*/ class Download{ var $debug=t... 阅读全文
posted @ 2014-08-08 15:08 timily 阅读(249) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-08-08 15:06 timily 阅读(303) 评论(0) 推荐(0)
摘要:class DES{ var $key; function DES() { $this->key = md5("EPH e-Textbook"); $this->key = "".$this->key; $this->key = strtoupp... 阅读全文
posted @ 2014-08-08 15:04 timily 阅读(620) 评论(0) 推荐(0)
摘要:這些資源基本上都是一些免积分或只需要1個积分就能下载的資源,经过整理筛选最后分享给大家,希望大家喜欢:PHP手册(chm) http://download.csdn.net/detail/u011851645/6030287php手册 最新版本 http://download.csdn.net/de... 阅读全文
posted @ 2014-08-08 14:54 timily 阅读(316) 评论(0) 推荐(0)
摘要:对一批文件进行压缩处理,采用system 调用linux 压缩命令进行文件压缩。命令公用代码:function addZip($webdocs, $zipfile, $param, $file){ system("cd $webdocs; tar $param $zipfile \"".$fi... 阅读全文
posted @ 2014-08-08 14:24 timily 阅读(358) 评论(0) 推荐(0)