2016年4月3日

Centos下多种PHP拓展安装方法

摘要: http://my.oschina.net/u/2400083/blog/518195 阅读全文

posted @ 2016-04-03 21:57 李明卫 阅读(64) 评论(0) 推荐(0)

2016年3月31日

理解PHP array_reduce函数

摘要: http://blog.tanteng.me/2015/07/php-array-reduce/ 阅读全文

posted @ 2016-03-31 00:14 李明卫 阅读(221) 评论(0) 推荐(0)

reduce 方法 (Array) (JavaScript)

摘要: https://msdn.microsoft.com/library/ff679975(v=vs.94).aspx 阅读全文

posted @ 2016-03-31 00:04 李明卫 阅读(96) 评论(0) 推荐(0)

2016年3月30日

ES5中新增的Array方法详细说明

摘要: http://www.zhangxinxu.com/wordpress/2013/04/es5%E6%96%B0%E5%A2%9E%E6%95%B0%E7%BB%84%E6%96%B9%E6%B3%95/ 阅读全文

posted @ 2016-03-30 23:59 李明卫 阅读(92) 评论(0) 推荐(0)

2016年3月29日

常见php正则表达式

摘要: $str=preg_replace("/\s+/", " ", $str); //过滤多余回车 $str=preg_replace("/<[ ]+/si","<",$str); //过滤<__("<"号后面带空格) $str=preg_replace("/<\!--.*?-->/si","",$st 阅读全文

posted @ 2016-03-29 10:03 李明卫 阅读(103) 评论(0) 推荐(0)

2016年3月26日

thinkphp ,php5.3以上版本,开发调式工具 ,基于nodejs 的socketlog

摘要: 源码官方网站 https://github.com/luofei614/SocketLog 阅读全文

posted @ 2016-03-26 22:40 李明卫 阅读(173) 评论(0) 推荐(0)

2016年3月25日

前端切页面 架构配置 node npm grunt grunt合并HTML必看

摘要: 快速搭建前端开发环境 1.npm包依赖 2.grunt 配置 3.官方参考文章 https://github.com/spatools/grunt-html-build 阅读全文

posted @ 2016-03-25 00:03 李明卫 阅读(310) 评论(0) 推荐(0)

2016年3月24日

mysql 优化笔记

摘要: 做活动,用户暴涨,mysql服务器2G ,爆表,cpu100%,优化如下 1. 方法一:进入MYSQL安装目录 打开MYSQL配置文件 my.ini 或 my.cnf查找 max_connections=100 修改为 max_connections=1000 服务里重起MYSQL即可 方法二:My 阅读全文

posted @ 2016-03-24 15:16 李明卫 阅读(130) 评论(0) 推荐(0)

2014年2月25日

memcached学习手记1-windows下xampp安装配置memcached-1.4.13-win32-bin, 及php_memcache.dll(php5.4)

摘要: 1. 下载memcache的windows版, 解压放某个盘下面, 比如在D:\memcached下载地址:http://code.jellycan.com/files/memcached-1.2.6-win32-bin.zip笔者使用1.4.13,有意者单独联系2. 在终端(也即cmd命令界面)下... 阅读全文

posted @ 2014-02-25 11:45 李明卫 阅读(222) 评论(0) 推荐(0)

2014年2月24日

简单的php奥运倒计时牌

摘要: 1 "; 7 //echo date ( "Y-m-d H:i:s", time () ); 8 $timecha = $kaimu - time (); 9 10 mkdaojishi ( $timecha );11 function mkdaojishi($timecha) {12 $miao = $timecha % 60;13 $fen = floor ( $timecha / 60 );14 15 if ($fen > 60) {16 $shi = floor ( $fen / 60 );17 $fen=$fen%60;... 阅读全文

posted @ 2014-02-24 09:26 李明卫 阅读(145) 评论(0) 推荐(0)

导航