简体   繁体   中英

Mongo class not found in Heroku PHP

I am using Heroku PHP, and has added the MongoHQ addon.

But it gives an error "class Mongo not found" at the line $m = new Mongo();

What else do I need to setup mongo driver on Heroku?

It is now supported.

Follow the instructions at https://gist.github.com/1288447

Custom extensions can be added to /app/www/ext/ with your custom php.ini !

Heroku currently does not support Mongo PHP classes.

Yeah, you can add the MongoHQ add-on etc, but Mongo driver is still not available for PHP yet. This answer comes for Heroku support.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM