php - Connect to Mlab in Host -


i tryed connect mlab php following code:

$connection = new mongoclient('mongodb://user:pass@ds051605.mlab.com:51605/db'); 

this code worked correctly in system didn't work in host , reterned error 500 (my host doesn't support mongo). problem? there need supporting mongo in host? additionaly, var_dump($connection) command doesn't show error.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -