Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 9883

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Stream Context Options</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongo.connecting.persistent.manual.html">Manually Persistent Connections (version up to 1.1.4 *only*)</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.log-cmd-delete.html">log_cmd_delete</a></div>
 <div class="up"><a href="mongo.manual.html">Manual</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongo.context" class="reference">
 <h1 class="title">Stream Context Options</h1>

 <div class="partintro">
  <p class="para" id="mongo.context.options">
   The PHP MongoDB extension provides <a href="context.html" class="link">Stream Context Support</a>
   using the <a href="context.mongodb.html" class="link">mongodb</a> context.
  </p>

  <p class="para">
   A stream context must be created with <span class="function"><a href="function.stream-context-create.html" class="function">stream_context_create()</a></span> and passed to the <span class="methodname"><a href="mongoclient.construct.html" class="methodname">MongoClient::__construct()</a></span> before the actual connection to MongoDB is made.
   It is not possible to apply a stream context to already created streams.
  </p>

  <p class="para">
   Additional context options and parameters, such as <a href="context.ssl.html" class="link">ssl</a>
   and <a href="context.params.html" class="link">notification parameters</a>, are also supported.
  </p>

  <p class="para">
   The MongoDB context options provide a rich interface to log network traffic between the driver and the MongoDB servers.
   This interface can be used to provide query logging, profiler, debuggers, or anything that would need to inspect the underlaying
   commands and protocol options.
  </p>

  <div class="simplesect">
   <h3 class="title">See Also</h3>
   <ul class="simplelist">
    <li class="member"><a href="context.ssl.html" class="xref">SSL context options</a></li>
    <li class="member"><a href="context.socket.html" class="xref">Socket context options</a></li>
    <li class="member"><a href="context.params.html" class="xref">Context parameters</a></li>
   </ul>
  </div>

 </div>

 

















































 
<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.log-cmd-delete.html">log_cmd_delete</a> — Callback When Deleting Documents</li><li><a href="function.log-cmd-insert.html">log_cmd_insert</a> — Callback When Inserting Documents</li><li><a href="function.log-cmd-update.html">log_cmd_update</a> — Callback When Updating Documents</li><li><a href="function.log-getmore.html">log_getmore</a> — Callback When Retrieving Next Cursor Batch</li><li><a href="function.log-killcursor.html">log_killcursor</a> — Callback When Executing KILLCURSOR operations</li><li><a href="function.log-reply.html">log_reply</a> — Callback When Reading the MongoDB reply</li><li><a href="function.log-write-batch.html">log_write_batch</a> — Callback When Writing Batches</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongo.connecting.persistent.manual.html">Manually Persistent Connections (version up to 1.1.4 *only*)</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.log-cmd-delete.html">log_cmd_delete</a></div>
 <div class="up"><a href="mongo.manual.html">Manual</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>