php equivalent of rs.conf() in mongodb ? -


how can same result rs.conf() gives. trying replicaset node's status through php. wondering if can same output rs.conf() gives in mongodb shell ?

you can try using mongodb::execute

example :

$db->execute('return rs.status();'); 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

c# - Abstract method in public abstract class implementing an internal interface doesn't compile? -

authentication - Mongodb revoke acccess to connect test database -