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 Mongo Docs: http://php.net/manual/en/class.mongodb.php --> | |
<html> | |
<body> | |
<h1>MongoHQ Test</h1> | |
<?php | |
try { | |
// connect to MongoHQ assuming your MONGOHQ_URL environment | |
// variable contains the connection string | |
$connection_url = getenv("MONGOHQ_URL"); |