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

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

php - trouble displaying mysqli database results in correct order -

javascript - Trying create a translator based on a preset alphabet -