10 2015 档案

python环境搭建
摘要:Python下载Python最新源码,二进制文档,新闻资讯等可以在Python的官网查看到:Python官网:http://www.python.org/你可以在一下链接中下载Python的文档,你可以下载 HTML、PDF 和 PostScript 等格式的文档。Python文档下载地址:www.... 阅读全文

posted @ 2015-10-31 17:41 liuwenbohhh 阅读(157) 评论(0) 推荐(0) 编辑

linux实现c多进程
摘要:线程(thread)技术早在60年代就被提出,但真正应用多线程到操作系统中去,是在80年代中期,solaris是这方面的佼佼者。传统的Unix也支持线程的概念,但是在一个进程(process)中只允许有一个线程,这样多线程就意味着多进程。现在,多 为什么有了进程的概念后,还要再引入线程呢?使用多线... 阅读全文

posted @ 2015-10-29 16:38 liuwenbohhh 阅读(2363) 评论(0) 推荐(0) 编辑

mysql慢查询
摘要:查看当前服务器是否开启慢查询:1、快速办法,运行sql语句show VARIABLES like "%slow%"2、直接去my.conf中查看。my.conf中的配置(放在[mysqld]下的下方加入)[mysqld]log-slow-queries = /usr/local/mysql/var/... 阅读全文

posted @ 2015-10-29 10:46 liuwenbohhh 阅读(163) 评论(0) 推荐(0) 编辑

php curl多线程抓取网页
摘要:PHP 利用 Curl Functions 可以完成各种传送文件操作,比如模拟浏览器发送GET,POST请求等等,受限于php语言本身不支持多线程,所以开发爬虫程序效率并不高,这时候往往需 要借助Curl Multi Functions 它可以实现并发多线程的访问多个url地址。既然 Curl Mu... 阅读全文

posted @ 2015-10-29 09:55 liuwenbohhh 阅读(278) 评论(0) 推荐(0) 编辑

php读取qqwry.dat ip地址定位文件的类
摘要:fp=fopen($datfile,'rb'); //二制方式打开 $this->firstip = $this->get4b(); //第一条ip索引的绝对偏移地址 $this->lastip = $this->get4b(); //最后一条ip索引的绝对偏移地址 $this->tot... 阅读全文

posted @ 2015-10-26 10:34 liuwenbohhh 阅读(1048) 评论(0) 推荐(1) 编辑

isset和empty比较
摘要:PHP的isset()函数 一般用来检测变量是否设置格式:bool isset ( mixed var [, mixed var [, ...]] )功能:检测变量是否设置返回值:若变量不存在则返回 FALSE若变量存在且其值为NULL,也返回 FALSE若变量存在且值不为NULL,则返回 TURE... 阅读全文

posted @ 2015-10-19 18:01 liuwenbohhh 阅读(162) 评论(0) 推荐(0) 编辑

php比较加赋值语句
摘要:$a=-2;if ($a < 0 && $a = 1) { echo $a;}输出1右面的$a=1可不是条件哦,而是赋值 阅读全文

posted @ 2015-10-19 16:16 liuwenbohhh 阅读(412) 评论(0) 推荐(0) 编辑

yaf在windows7下32位的安装教程
摘要:首先下载php_yaf.dll文件http://pecl.php.net/package/yaf/2.2.9/windows打开扩展extension=php_yaf.dll然后下载工具https://github.com/Wen1750686723/yaf/tree/master/tools/cg... 阅读全文

posted @ 2015-10-19 16:02 liuwenbohhh 阅读(474) 评论(0) 推荐(0) 编辑

ecshop insert用法
摘要:1{insertname='ads'id=$ads_idnum=$ads_num}控制语句是在 /includes/lib_insert.php 文件。这个文件是ecshop动态内容函数库。里面定义各个函数的格式都是 function insert_***() ,每个函数都是一个功能控制模块,在模板... 阅读全文

posted @ 2015-10-16 15:35 liuwenbohhh 阅读(694) 评论(0) 推荐(0) 编辑

php获得文件夹下所有文件的递归算法
摘要:function my_scandir($dir){ $files=array(); if(is_dir($dir)) { if($handle=opendir($dir)) { while(($file=readdir($handle))!==false) { if($file!... 阅读全文

posted @ 2015-10-16 10:20 liuwenbohhh 阅读(192) 评论(0) 推荐(0) 编辑

awk统计nginx日志访问前一百的ip
摘要:访问ip awk '{print $1}' access.log| sort | uniq -c | sort -n -k 1 -r | head -n 100访问地址awk '{print $7}' access.log| sort | uniq -c | sort -n -k 1 -r | he... 阅读全文

posted @ 2015-10-16 09:15 liuwenbohhh 阅读(841) 评论(0) 推荐(0) 编辑

字符串匹配和汉字长度算法
摘要: 阅读全文

posted @ 2015-10-14 13:40 liuwenbohhh 阅读(168) 评论(0) 推荐(0) 编辑

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 阅读(193) 评论(0) 推荐(0) 编辑

php实现下载
摘要:PHP实现下载文件的两种方法。分享下,有用到的朋友看看哦。方法一:?1234567891011121314151617了解php中header函数的用法。方法二:?12345678910转自http://www.jb51.net/article/40485.htm 阅读全文

posted @ 2015-10-13 10:49 liuwenbohhh 阅读(166) 评论(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 阅读(412) 评论(0) 推荐(0) 编辑

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

posted @ 2015-10-10 11:42 liuwenbohhh 阅读(301) 评论(0) 推荐(0) 编辑

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

posted @ 2015-10-08 14:50 liuwenbohhh 阅读(214) 评论(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 阅读(178) 评论(0) 推荐(0) 编辑

php安全过滤类
摘要:/*ansic码-Url码表:http://www.w3school.com.cn/tags/html_ref_urlencode.html--------------------------------------------------------------------------------... 阅读全文

posted @ 2015-10-08 09:27 liuwenbohhh 阅读(2467) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示