php
文章平均质量分 66
Radish_Ghost
我有一杯酒,可以慰风尘
展开
-
自己写的部分CI框架库函数
<?phpfunction is_PHP($version){ if(PHP_VERSION<$version)return 0; return 1;}function is_really_writable($file){ $fp=fopen($file, 'a+'); if(!$fp) { return 0; } fclose($fp); return 1;}f原创 2015-08-13 18:01:30 · 964 阅读 · 0 评论 -
Mac OS X安装redis-php扩展
1.获取github中的redis-php扩展代码:git clone https://github.com/phpredis/phpredis.git2.cd phpredis/ 3.phpize !!!!!!!!!!!!!!!!!!!!!!! 3.5 mac os 如果这里有Cannot find autoconf. Please check your autoconf installat原创 2015-08-16 19:05:18 · 2011 阅读 · 0 评论 -
【php】基于Redis的js、css缓存类
<?php/**基于Redis的js、css缓存类(有效解决tp等框架访问public出现的各种问题)*Written by Radish 2015.8.16*/define('REDIS_HOST', '127.0.0.1');define('REDIS_PORT', 6379);//class im{ function __construct() { $this->r原创 2015-08-16 19:06:36 · 1586 阅读 · 0 评论