newbie here. I m confused. I wish to understand how I possibly could use MongoDB through MongoHQ by having an application located on PHPFog. Phpfog uses Github to push commits inside your base folder. Thanks!

Use http://world wide web.php.internet/manual/en/class.mongo.php to make use of MongoDB from PHP.

Sign in to MongoHQ and make up a database. Obtain the connection URL, that ought to be something similar to this:

mongodb://<user>:<password>@flame.mongohq.com:27101/testing

Then make use of this line in PHP for connecting towards the database:

$m = new Mongo("mongodb://<user>:<password>@flame.mongohq.com:27101")

Make sure to take away the /testing in the finish from the connection URL.