Skip to content

Instantly share code, notes, and snippets.

@alanhoff
Created June 13, 2013 14:48
Show Gist options
  • Save alanhoff/5774280 to your computer and use it in GitHub Desktop.
Save alanhoff/5774280 to your computer and use it in GitHub Desktop.
<?php
function mongo(){
$connection = "mongodb://mongo1:27017,mongo2:27017";
//$connection = null;
return new MongoClient($connection, [
"replicaSet" => "nodeware",
"w" => 0,
"journal" => false
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment