开发者

Mongo class not found in Heroku PHP

开发者 https://www.devze.com 2023-04-12 05:00 出处:网络
I am using Heroku PHP, and has added the Mongo开发者_运维百科HQ addon. But it gives an error \"class Mongo not found\" at the line $m = new Mongo();

I am using Heroku PHP, and has added the Mongo开发者_运维百科HQ 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消