ali_254 Posted October 19, 2022 Share Posted October 19, 2022 hi.i installed mongodb and install "driver mongodb for php" from pecl.php.net. when run this code , I am getting the error " Fatal error: Uncaught Error: Class "MongoClient" not found". <?php $m = new MongoClient(); echo "Connection to database successfully"; // select a database $db = $m->examplesdb; echo "Database examplesdb selected"; Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.