title: How i can connect MongoDB online cloud in PHP
body: <p><strong>i want online connection with MongoDB cloud in PHP</strong></p>
  <p>same source file working properly when i run on localhost in my laptop with empty $server string while i use mongoDb server cloud then i face an error</p>
  <pre><code>&lt;?php 
  session_start();
  // $server=&quot;&quot;;
  $server='mongodb+srv://mongo_user_1:&lt;password&gt;@mongodb01-dolny.mongodb.net/test?retryWrites=true&amp;w=majority';
  $mongo = new MongoClient($server);
  $db=$mongo-&gt;blogPosting;
  $admin_cl=$db-&gt;admin;
  $category_cl=$db-&gt;category;
  $blog_cl=$db-&gt;blog;
  $contact_cl=$db-&gt;contact;
  $blog_comment_cl=$db-&gt;blog_comment;
   ?&gt;
  </code></pre>
  <blockquote>
  <p>Fatal error: Uncaught exception 'MongoConnectionException' with
  message '- Found unknown connection string option 'retryWrites' with
  value 'true'' in G:\xampp\htdocs\mongo_blog\mongoDb.php:5 Stack trace:</p>
  <h1>0 G:\xampp\htdocs\mongo_blog\mongoDb.php(5): MongoClient-&gt;__construct('mongodb+srv://m...') #1</h1>
  <p>G:\xampp\htdocs\mongo_blog\blog\index.php(1):
  include('G:\xampp\htdocs...') #2 {main} thrown in
  G:\xampp\htdocs\mongo_blog\mongoDb.php on line 5</p>
  </blockquote>