Skip to content

Instantly share code, notes, and snippets.

View morozovsk's full-sized avatar
🤓

Vladimir Goncharov morozovsk

🤓
View GitHub Profile
if (isset($_GET["mongo"])) {
$possible_drivers = array("mongo");
define("DRIVER", "mongo");
class Min_DB {
var $extension = "MongoDb", $error, $last_id;
/** @var MongoDB\Driver\Manager */
var $_link;
var $_db, $_db_name;
function connect($server, $username, $password) {