MongoDb error with php 7 on xampp CodeIgniter

匿名 (未验证) 提交于 2019-12-03 10:24:21

问题:

I am getting the following error when running the app in xampp with Php 7. I am new to mongoDb. Can't figure out what might solve this issue. Any help or suggestion about the problem will be highly appreciated. Thank you for your help. Below is the code I believe have some issue.

Error:

An uncaught Exception was encountered

Type: Error

Message: Class 'MongoClient' not found

Filename: C:\xampp\htdocs\Web\application\libraries\Mongo_db.php

Line Number: 49

Backtrace:

File: C:\xampp\htdocs\Web\application\controllers\Home.php Line: 7 Function: __construct

File: C:\xampp\htdocs\Web\index.php Line: 315 Function: require_once

libraries\Mongo_db.php

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');  class Mongo_db {          private $debug;     private $write_concerns;     private $journal;     private $selects = array();     private $updates = array();     private $wheres = array();     private $limit  = 999999;     private $offset = 0;     private $sorts  = array();     private $return_as = 'array';     public $benchmark = array();     public function
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!