摘要: ``` connect('127.0.0.1',6379,1);//短链接,本地host,端口为6379,超过1秒放弃链接 $redis->open('127.0.0.1',6379,1);//短链接(同上) $redis->pconnect('127.0.0.1',6379,1);//长链接,本地host,端口为6379,超过1秒放弃链接 $redis->popen('127... 阅读全文
posted @ 2018-12-30 17:05 大天狗子 阅读(180) 评论(0) 推荐(0) 编辑
摘要: ``` //二分查找 function bin_sch($array, $low, $high, $k) { if ($low $i; $j--) { if ($array[$j] =')) { $json = json_decode($json, $assoc, $depth, $options); } elseif (version_... 阅读全文
posted @ 2018-12-30 17:05 大天狗子 阅读(293) 评论(0) 推荐(0) 编辑
摘要: ``` ``` 阅读全文
posted @ 2018-12-30 17:04 大天狗子 阅读(364) 评论(0) 推荐(0) 编辑
摘要: ``` "> ``` 阅读全文
posted @ 2018-12-30 17:03 大天狗子 阅读(99) 评论(0) 推荐(0) 编辑
摘要: ``` 相同) header('Refresh: 3; url=http://www.maiyoule.com/'); echo '10后跳转到http://www.maiyoule.com'; // 重写 X-Powered-By 值 header('X-Powered-By: PHP/5.3.0'); header('X-Powered-By: Brain/0.... 阅读全文
posted @ 2018-12-30 17:03 大天狗子 阅读(118) 评论(0) 推荐(1) 编辑
摘要: ArrayHelper.php <?php / php 数组助手类 Class ArrayHelper @package app\helper / class ArrayHelper { / @brief get_ids_arr 取得某个二维数组里的id集合 $arr = array( arr 阅读全文
posted @ 2018-12-30 17:02 大天狗子 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 根据ip获取地理信息.php 阅读全文
posted @ 2018-12-30 17:01 大天狗子 阅读(208) 评论(0) 推荐(0) 编辑
摘要: ``` /** * 高效判断远程文件是否存在 * @param $file * @return bool 存在返回 true 不存在或者其他原因返回false */ function remoteFileExist($file) { if(preg_match('/^http:\/\//',$file)){ //远程文件 if(ini_get('a... 阅读全文
posted @ 2018-12-30 17:00 大天狗子 阅读(218) 评论(0) 推荐(0) 编辑
摘要: excle_word.php 阅读全文
posted @ 2018-12-30 16:02 大天狗子 阅读(113) 评论(0) 推荐(0) 编辑