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

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -