漂定

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

05 2016 档案

摘要:function EncodingAESKeyGen() { var letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; var token = ''; for(var i = 0; i < 43; i++) { va... 阅读全文
posted @ 2016-05-13 11:41 漂定 阅读(228) 评论(0) 推荐(0)

摘要:// 随机字符串 function random($length, $numeric = FALSE) { $seed = base_convert(md5(microtime() . $_SERVER['DOCUMENT_ROOT']), 16, $numeric ? 10 : 35); $seed = $numeric ? (str_replace('0', '', $see... 阅读全文
posted @ 2016-05-12 09:15 漂定 阅读(273) 评论(0) 推荐(0)

摘要:connect('127.0.0.1', 11211)) die('could not connect'); } if('' === $value){ return $cache->get($name); }elseif(is_null($value)) { return $cache->delete($name); }else ... 阅读全文
posted @ 2016-05-05 11:18 漂定 阅读(227) 评论(0) 推荐(0)

摘要:hasItem($id)){ $this->incCartNum($id,$num); return true; } $this->items[$id] = array( 'id' => $id, 'name' => $name, 'pr... 阅读全文
posted @ 2016-05-05 00:09 漂定 阅读(581) 评论(0) 推荐(0)