This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (class_exists('Mongo')){echo "MongoDB is installed<br>";}else{die(" MongoDB is not installed<br>");} | |
//echo extension_loaded("mongo") ? "loaded\n" : "not loaded\n"; | |
//print_r(get_loaded_extensions()); | |
try { | |
// open connection to MongoDB server | |
$conn = new Mongo('localhost'); | |
// access database | |
$db = $conn->workout; |