-1
I’m running a test to save the site information in the database and the code I wrote to see if the PHP
and the bank are connected was that:
<?php
$mng = new MongoDB\Driver\Manager("mongodb://login-hpfbn.gcp.mongodb.net:27017");
$stats = new MongoDB\Driver\Command(["dbstats" => 1]);
$res = $mng->executeCommand("phpbasic", $stats);
$stats = current($res->toArray());
print_r($stats);
?>
and the site is showing me this error:
Fatal error: Uncaught Error: Class 'Mongodb Driver Manager' not found in C: xampp htdocs phpmongo test.php:4 Stack trace: #0 {main} thrown in C: xampp htdocs phpmongo test.php on line 4
The error itself already notifies you that the class has not been found. Have you seen this PHP documentation related to Mongodb?
– LipESprY
I just read about the length of this not yet, I’ll take a look, thank you very much.
– Samuel Tanan