I just install php mongodb driver by "pecl install mongodb", and the phpinfo page shows mongodb module, that means the module installed successfully, but when I use the code:
"if ( ! class_exists('Mongo') && ! class_exists('MongoClient'))
{
show_error("The MongoDB PECL extension has not been installed or enabled", 500);
}"
in the library file of codeigniter, it shows the error, then I guess maybe this is just for mongo, not for mongodb, so is there any codeingiter library for mongodb?
enable both
in php.ini file
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.