mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
added some docuhub links
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@301861 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
d9c35b65d1
commit
0380452c2a
3 changed files with 19 additions and 1 deletions
|
@ -292,6 +292,10 @@ $m2 = new Mongo("mongodb://ny1.example.com", array("replicaSet" => true));
|
|||
<para>
|
||||
If you include seeds from two separate replica sets, behavior is undefined.
|
||||
</para>
|
||||
<para>See the
|
||||
<link xlink:href="&url.mongodb.dochub.rs;">core documentation</link> on
|
||||
replica sets for more information.
|
||||
</para>
|
||||
</example>
|
||||
<example>
|
||||
<title><function>Mongo::__construct</function> persistent connection example</title>
|
||||
|
|
|
@ -18,6 +18,14 @@
|
|||
enabled for the database server (it's not, by default), you need to log in
|
||||
before the database will allow you to do anything.
|
||||
</para>
|
||||
<para>
|
||||
In general, you should use the authenticate built into
|
||||
<function>Mongo::__construct</function> in preference to this method. If you
|
||||
authenticate on connection and the connection drops and reconnects during
|
||||
your session, you'll be reauthenticated. If you manually authenticated using
|
||||
this method and the connection drops, you'll have to call this method again
|
||||
once you're reconnected.
|
||||
</para>
|
||||
<para>
|
||||
This method is identical to running:
|
||||
<programlisting role="php">
|
||||
|
|
|
@ -162,7 +162,13 @@ User 4af467e4fd543cce7b0ea8e2 had 1 sale(s).
|
|||
<refsect1 role="seealso">
|
||||
&reftitle.seealso;
|
||||
<para>
|
||||
MongoDB core docs on <link xlink:href="&url.mongodb.dochub.commands;">database commands</link>.
|
||||
MongoDB core docs on
|
||||
<link xlink:href="&url.mongodb.dochub.commands;">database commands</link>
|
||||
and on individual commands:
|
||||
<link xlink:href="&url.mongodb.dochub.findandmodify;">findAndModify</link>,
|
||||
<link xlink:href="&url.mongodb.dochub.getlasterror;">getLastError</link>, and
|
||||
<link xlink:href="&url.mongodb.dochub.repair;">repair</link> (dozens more
|
||||
exist, there are merely a few examples).
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
Loading…
Reference in a new issue