Exemple #1
0
 public static function GetConnection()
 {
     self::$dbname = 'social-network';
     $db = new MongoClient('mongodb://*****:*****@ds047335.mongolab.com:47335/social-network');
     return $db;
 }