上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 40 下一页

lua环境安装 转

摘要: curl -R -O http://www.lua.org/ftp/lua-5.2.2.tar.gztar zxf lua-5.2.2.tar.gzcd lua-5.2.2make linux test报错cd src && make linuxmake[1]: Entering directory... 阅读全文
posted @ 2015-10-13 16:13 liuwenbohhh 阅读(199) 评论(0) 推荐(0)

php实现下载

摘要: PHP实现下载文件的两种方法。分享下,有用到的朋友看看哦。方法一:?1234567891011121314151617了解php中header函数的用法。方法二:?12345678910转自http://www.jb51.net/article/40485.htm 阅读全文
posted @ 2015-10-13 10:49 liuwenbohhh 阅读(169) 评论(0) 推荐(0)

php打包文件夹成zip文件

摘要: function addFileToZip($path,$zip){ $handler=opendir($path); //打开当前文件夹由$path指定。 while(($filename=readdir($handler))!==false){ if($filename != "." && $... 阅读全文
posted @ 2015-10-13 09:49 liuwenbohhh 阅读(416) 评论(0) 推荐(0)

nginx 反向跳转

摘要: 语法规则: location [=|~|~*|^~] /uri/ { … }= 开头表示精确匹配^~ 开头表示uri以某个常规字符串开头,理解为匹配 url路径即可。nginx不对url做编码,因此请求为/static/20%/aa,可以被规则^~ /static/ /aa匹配到(注意是空格)。~ ... 阅读全文
posted @ 2015-10-10 11:42 liuwenbohhh 阅读(306) 评论(0) 推荐(0)

利用nginx做负载均衡

摘要: 最近正在研究Nginx,Nginx作为反向代理服务器,可以对Web服务器提供加速,并且具有负载均衡的功能。 首先我要在官网下载Nginx(http://nginx.org/en/download.html),目前最新稳定的版本为1.0版本,Linux和Windows版本我都下下来了,在两台服务器上... 阅读全文
posted @ 2015-10-08 14:50 liuwenbohhh 阅读(216) 评论(0) 推荐(0)

无限极分类算法 thinkphp

摘要: 0) { $model->where('id="'.$id.'"')->save($data); }else{ $id = $model->add($data); } return $id; } public function add_child($modelName,$data,$p... 阅读全文
posted @ 2015-10-08 11:01 liuwenbohhh 阅读(182) 评论(0) 推荐(0)

php安全过滤类

摘要: /*ansic码-Url码表:http://www.w3school.com.cn/tags/html_ref_urlencode.html--------------------------------------------------------------------------------... 阅读全文
posted @ 2015-10-08 09:27 liuwenbohhh 阅读(2473) 评论(0) 推荐(0)

七牛上传

摘要: index.php文件Filename: receive。php文件 0) { echo "Return Code: " . $_FILES["file"]["error"] . ""; } else { // echo "Upload: " . $_FILES["f... 阅读全文
posted @ 2015-09-29 10:35 liuwenbohhh 阅读(158) 评论(0) 推荐(0)

go多进程

摘要: package mainimport "fmt" import "time"func loop() { for i := 0; i < 10; i++ { //fmt.Printf("%d ", i) }}func loop1() { for i := 0; i < ... 阅读全文
posted @ 2015-09-29 10:12 liuwenbohhh 阅读(287) 评论(0) 推荐(0)

centos安装nginx

摘要: Nginx 安装配置Nginx("engine x")是一款是由俄罗斯的程序设计师Igor Sysoev所开发高性能的 Web和反向代理服务器,也是一个 IMAP/POP3/SMTP代理服务器。在高连接并发的情况下,Nginx是Apache服务器不错的替代品。Nginx 安装系统平台:CentOS ... 阅读全文
posted @ 2015-09-29 10:09 liuwenbohhh 阅读(256) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 40 下一页