06 2015 档案
摘要:ThinkPHP3.2使用phpexcle将phpexcel放到Think\Org\PHPExcel中 public function index() { import('Org.PHPExcel.PHPExcel'); $reader = \PHPExcel_I...
阅读全文
摘要:1. Redis默认不是以守护进程的方式运行,可以通过该配置项修改,使用yes启用守护进程daemonize no2. 当Redis以守护进程方式运行时,Redis默认会把pid写入/var/run/redis.pid文件,可以通过pidfile指定pidfile /var/run/redis.pi...
阅读全文
摘要:phpredis是php的一个扩展,效率是相当高有链表排序功能,对创建内存级的模块业务关系很有用;以下是redis官方提供的命令使用技巧:下载地址如下:https://github.com/owlient/phpredis(支持redis 2.0.4)Redis::__construct构造函数$r...
阅读全文