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

pcntl研究

摘要: 虽说php用于并发计算有点山寨,但总比没有强把。(有问题请指正)下面是pcntl多线程的例子。(只能用于cli模式,而且只能用于linux环境)addServer('127.0.0.1', 11211);$k=1; $m->set('foo', 1);//$m->set('key', 0);for ... 阅读全文
posted @ 2015-09-09 17:10 liuwenbohhh 阅读(139) 评论(0) 推荐(0)

nodejs操作mysql

摘要: var mysql = require('mysql');var pool = mysql.createPool({ host: 'localhost', user: 'root', password: '', database: 'nodejs', port: 330... 阅读全文
posted @ 2015-09-09 16:52 liuwenbohhh 阅读(303) 评论(0) 推荐(0)

php排序函数测试

摘要: 1.sort,asort,arsort函数 十万个数的数组排序,用了0.17秒$starttime=explode(' ',microtime());;for ($i=0; $i 2.ksort函数 十万个数的数组排序,0.17秒3.利用php实现快排,用了2.3秒function quick_so... 阅读全文
posted @ 2015-09-09 09:41 liuwenbohhh 阅读(191) 评论(0) 推荐(0)

php

摘要: 堆 0; $end--) { $temp = $arr[0]; $arr[0] = $arr[$end]; $arr[$end] = $temp; ajustNodes($arr, 0, $end - 1); ... 阅读全文
posted @ 2015-09-08 16:26 liuwenbohhh 阅读(154) 评论(0) 推荐(0)

yum 安装redis

摘要: 1.yum install redis2.yum install php-redis3serviceredisstartchkconfigredison 阅读全文
posted @ 2015-09-08 09:38 liuwenbohhh 阅读(117) 评论(0) 推荐(0)

禁用backspace网页回退功能

摘要: 阅读全文
posted @ 2015-09-07 11:14 liuwenbohhh 阅读(284) 评论(0) 推荐(0)

在网页上打印,js window.print

摘要: window.print默认会打印出当前页在屏幕中显示的部分,可以实现在线打印 阅读全文
posted @ 2015-08-24 15:30 liuwenbohhh 阅读(178) 评论(0) 推荐(0)

form表单点击后验证

摘要: function check(){ var customertype = document.getElementById("customertype"); //alert(customertype.value); if(customertype.value == 0){ ale... 阅读全文
posted @ 2015-08-24 13:25 liuwenbohhh 阅读(229) 评论(0) 推荐(0)

phpci发送邮件

摘要: $config['protocol']='smtp'; $config['smtp_host']='smtp.163.com';//163服务器,之前用了qq服务器死活发不出去,不知道什么原因,可以自己探索 $config['... 阅读全文
posted @ 2015-08-21 14:17 liuwenbohhh 阅读(231) 评论(0) 推荐(0)

discuz的cutstr函数

摘要: function cutstr($string, $length, $dot = ' ...') { if(strlen($string) '.$end), $string); $strcut = ''; if(strtolower(CHARSET) == 'utf-8') { $n = $tn ... 阅读全文
posted @ 2015-08-17 10:14 liuwenbohhh 阅读(362) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 40 下一页
< 2025年6月 >
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 1 2 3 4 5
6 7 8 9 10 11 12

统计

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