PHP程序,附代码:
$mongo = new MongoClient();
$db = $mongo->btss;
$hashs = $mongo->db->hash;
$hash = $hashs->insert(array('hash' => $msg));
var_dump($hash);
执行后返回:
array(4) { ["ok"]=> float(1) ["n"]=> int(0) ["err"]=> NULL ["errmsg"]=> NULL }
我在mongo中检查没有数据,但是这个错误又没有有用的信息,特此来请教下(GG也没有)