上一页 1 ··· 6 7 8 9 10

2014年2月12日

Codeigniter MongoDB类库

摘要: 安装方法:1.将mongodb.php 放到config目录2.将Mongo_db.php放到library目录使用方法:$this->mongo_db->where_gte('age', 18)->where(array('country' => 'UK', 'can_drink' => TRUE))->get('people');代码:config/mongodb.phpCI =& get_instance(); $this->connection_string 阅读全文

posted @ 2014-02-12 10:49 逍遥郭 阅读(2855) 评论(0) 推荐(0) 编辑

MySQL和MongoDB语句的写法对照

摘要: 查询: MySQL: SELECT * FROM user Mongo: db.user.find() MySQL: SELECT * FROM user WHERE name = ’starlee’ Mongo: db.user.find({‘name’ : ’starlee’}) 插入: MySQL: INSERT INOT user (`name`, `age`) values (’starlee’,25) Mongo: db.user.insert({‘name’ : ’starlee’, ‘age’ : 25}) 如果你想在MySQL里添加一个字段,你必须: ALTER TABLE 阅读全文

posted @ 2014-02-12 10:40 逍遥郭 阅读(752) 评论(0) 推荐(0) 编辑

2014年1月25日

RSA openssl_public_encrypt false

摘要: 这个问题困扰了我好久,最后发现,原来这个函数只能最大长度为117个字节。如果加密的串超过这个长度,就会返回false。 阅读全文

posted @ 2014-01-25 19:29 逍遥郭 阅读(1658) 评论(0) 推荐(0) 编辑

2014年1月23日

uploadify多次加载导致页面无法加载

摘要: function upld() { $('#file_upload').uploadify({ 'formData' : {'seccode':''}, 'swf' : '', 'uploader' : '', 'auto' : true, 'removeCompleted': false, 'debug':true, 'buttonImage':'', 'width':2 阅读全文

posted @ 2014-01-23 16:31 逍遥郭 阅读(439) 评论(0) 推荐(0) 编辑

RSA非对称加密 php的openssl实现

摘要: _keyPath = $path; } /** * create the key pair,save the key to $this->_keyPath */ public function createKey() { $r = openssl_pkey_new(); openssl_pkey_export($r, $privKey); file_put_contents($this->_keyPath . DIR... 阅读全文

posted @ 2014-01-23 16:26 逍遥郭 阅读(1448) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10

导航