I have a PHP v7.4 server with mongo enabled.
I just tried the suggested connection and I got a failure.
$client = new MongoDB\Client( 'mongodb+srv://USER:PASSWORD@CLUSTER/test?retryWrites=true&w=majority' ); $db = $client->test;
Could do with some help working out what the issue is.
I have seen several different versions of mongo usage in php which makes it a little confusing.
Also, I couldn’t find a clear link from php 7.4 to mongo driver version. Because I saw a list of other version numbers of the mongo php version. E.g https://docs.mongodb.com/drivers/php under compatibility.
Thanks in advance