note 104310 added to mongodb.command

From: Date: Wed, 08 Jun 2011 11:18:10 +0000
Subject: note 104310 added to mongodb.command
Groups: php.notes 
Request: Send a blank email to php-notes+get-180325@lists.php.net to get a copy of this message
> Need to know the database version? There's a command for that. We didn't find it - ended up using either; <?php $m = new Mongo(); $adminDB = $m->admin; //require admin priviledge $mongodb_info = $adminDB->command(array('buildinfo'=>true)); $mongodb_version = $mongodb_info['version']; print_r($mongodb_info); ?> or <?php $v = mongo --version; print_r($v); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 221.133.44.62 ---- Manual Page -- http://www.php.net/manual/en/mongodb.command.php Edit -- https://master.php.net/note/edit/104310 Del: integrated -- https://master.php.net/note/delete/104310/integrated Del: useless -- https://master.php.net/note/delete/104310/useless Del: bad code -- https://master.php.net/note/delete/104310/bad+code Del: spam -- https://master.php.net/note/delete/104310/spam Del: non-english -- https://master.php.net/note/delete/104310/non-english Del: in docs -- https://master.php.net/note/delete/104310/in+docs Del: other reasons-- https://master.php.net/note/delete/104310 Reject -- https://master.php.net/note/reject/104310 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180325) next »