drxm72811 2010-04-10 04:59
浏览 94
已采纳

PHP无法连接到Mongodb

I followed the windows installation instructions in mongodb's website but I still can't connect to MongoDB through PHP because of this error:

Class 'Mongo' not found

Why isn't the file containing the Mongo Class not being loaded?

I've also found this error:

PHP Warning: PHP Startup: mongo: Unable to initialize module Module compiled with module API=20090626, debug=0, thread-safety=1 PHP compiled with module API=20060613, debug=0, thread-safety=1 These options need to match in Unknown on line 0

I'm using php 5.2.5 and the mongo-php-driver is Windows PHP 5.2 VC6 thread safe

Thanks

  • 写回答

2条回答 默认 最新

  • douqi1625 2010-04-10 05:55
    关注

    The driver was compiled for php 5.3 though the name suggests otherwise.
    Can you upgrade to php 5.3(.2) ?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换