09 2015 档案

七牛上传
摘要:index.php文件Filename: receive。php文件 0) { echo "Return Code: " . $_FILES["file"]["error"] . ""; } else { // echo "Upload: " . $_FILES["f... 阅读全文

posted @ 2015-09-29 10:35 liuwenbohhh 阅读(152) 评论(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 阅读(281) 评论(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 阅读(254) 评论(0) 推荐(0) 编辑

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 阅读(138) 评论(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 阅读(302) 评论(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 编辑

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

yum 安装redis
摘要:1.yum install redis2.yum install php-redis3serviceredisstartchkconfigredison 阅读全文

posted @ 2015-09-08 09:38 liuwenbohhh 阅读(112) 评论(0) 推荐(0) 编辑

禁用backspace网页回退功能
摘要: 阅读全文

posted @ 2015-09-07 11:14 liuwenbohhh 阅读(283) 评论(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

统计

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