PHP does not connect to localhost MongoDB and fails silently -


i have php script this:

try {     $conn = new mongoclient("mongodb://localhost:27017");     var_dump($conn); } catch (mongoconnectionexception $e) {     var_dump($e); } 

when visited page, showed nothing. mongod shows no connection attempt, shell client works normally.

i'm running mongodb 2.4 on debian.

any appreciated, thanks!


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -