Warning: include(../../../htpasswd/mongodb.inc): Failed to open stream: No such file or directory in /home/course/u10/public_html/submissions/Tests of past/test3/scripts/get_quote_from_mongodb.php on line 7

Warning: include(): Failed opening '../../../htpasswd/mongodb.inc' for inclusion (include_path='.:/usr/share/php') in /home/course/u10/public_html/submissions/Tests of past/test3/scripts/get_quote_from_mongodb.php on line 7

Warning: Undefined variable $username in /home/course/u10/public_html/submissions/Tests of past/test3/scripts/get_quote_from_mongodb.php on line 10

Warning: Undefined variable $password in /home/course/u10/public_html/submissions/Tests of past/test3/scripts/get_quote_from_mongodb.php on line 10

Fatal error: Uncaught MongoDB\Driver\Exception\InvalidArgumentException: Failed to parse MongoDB URI: 'mongodb://:@localhost/u10'. Default authentication mechanism requires username. in /var/shared/vendor/mongodb/mongodb/src/Client.php:107 Stack trace: #0 /var/shared/vendor/mongodb/mongodb/src/Client.php(107): MongoDB\Driver\Manager->__construct() #1 /home/course/u10/public_html/submissions/Tests of past/test3/scripts/get_quote_from_mongodb.php(10): MongoDB\Client->__construct() #2 {main} thrown in /var/shared/vendor/mongodb/mongodb/src/Client.php on line 107