I'm trying to use mongodb with php but I keep getting this error
("Class 'MongoClient' not found")
whenever I try this code:
$m = new MongoClient();
The weird part is that if I run a get_loaded_extensions()
, mongodb shows up and it also shows up on the phpinfo()
. I also have extension=mongodb.so
on the php.ini file.
I'm on debian running MongoDB shell version: 2.6.11 and php is running mongodb version 1.1.2.