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
Post a Comment