php-doc-en/reference/mongo/ini.xml
Daniel Egeberg 96c9d88bad Converted to utf-8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00

181 lines
4.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<section xml:id="mongo.configuration" xmlns="http://docbook.org/ns/docbook">
<title>php.ini Options</title>
&extension.runtime;
<para>
<table>
<title>Mongo &ConfigureOptions;</title>
<tgroup cols="3">
<thead>
<row>
<entry>&Name;</entry>
<entry>&Default;</entry>
<entry>&Changeable;</entry>
</row>
</thead>
<tbody>
<row>
<entry><link linkend="ini.mongo.default-host">mongo.default_host</link></entry>
<entry>"localhost"</entry>
<entry>PHP_INI_ALL</entry>
</row>
<row>
<entry><link linkend="ini.mongo.default-port">mongo.default_port</link></entry>
<entry>27017</entry>
<entry>PHP_INI_ALL</entry>
</row>
<row>
<entry><link linkend="ini.mongo.auto-reconnect">mongo.auto_reconnect</link></entry>
<entry>true</entry>
<entry>PHP_INI_SYSTEM</entry>
</row>
<row>
<entry><link linkend="ini.mongo.allow-persistent">mongo.allow_persistent</link></entry>
<entry>true</entry>
<entry>PHP_INI_SYSTEM</entry>
</row>
<row>
<entry><link linkend="ini.mongo.chunk-size">mongo.chunk_size</link></entry>
<entry>262144</entry>
<entry>PHP_INI_SYSTEM</entry>
</row>
<row>
<entry><link linkend="ini.mongo.cmd">mongo.cmd</link></entry>
<entry>"$"</entry>
<entry>PHP_INI_ALL</entry>
</row>
<row>
<entry><link linkend="ini.mongo.utf8">mongo.utf8</link></entry>
<entry>"1"</entry>
<entry>PHP_INI_ALL</entry>
</row>
</tbody>
</tgroup>
</table>
&ini.php.constants;
</para>
&ini.descriptions.title;
<para>
<variablelist>
<varlistentry xml:id="ini.mongo.default-host">
<term>
<parameter>mongo.default_host</parameter>
<type>string</type>
</term>
<listitem>
<para>
Default hostname when nothing is passed to the constructor.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.mongo.default-port">
<term>
<parameter>mongo.default_port</parameter>
<type>string</type>
</term>
<listitem>
<para>
The default TCP port number to use when connecting to the database server
if no other port is specified. The database's default is
<literal>27017</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.mongo.auto-reconnect">
<term>
<parameter>mongo.auto_reconnect</parameter>
<type>bool</type>
</term>
<listitem>
<para>
Whether to reconnect to the database if the connection is lost.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.mongo.allow-persistent">
<term>
<parameter>mongo.allow_persistent</parameter>
<type>bool</type>
</term>
<listitem>
<para>
If persistent connections are allowed.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.mongo.chunk-size">
<term>
<parameter>mongo.chunk_size</parameter>
<type>int</type>
</term>
<listitem>
<para>
The number of bytes-per-chunk. Used in divvying up GridFS files. This
number must be at least 100 less than 4 megabytes (max: 4194204) and it is
recommended that it be less than that.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.mongo.cmd">
<term>
<parameter>mongo.cmd</parameter>
<type>string</type>
</term>
<listitem>
<para>
A character to be used in place of $ in modifiers and comparisons.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="ini.mongo.utf8">
<term>
<parameter>mongo.utf8</parameter>
<type>int</type>
</term>
<listitem>
<para>
If an exception should be thrown for non-UTF8 strings. Until version
1.0.4, the PHP driver would ignore non-UTF8 strings, even though you're
not supposed to insert them. As of 1.0.4, the driver throws a
<classname>MongoException</classname>. To ease the transition for
applications that insert non-UTF8 strings, you can turn this option off to
emulate the old, non-exception-throwning behavior. This option will be
eliminated and exceptions always thrown for non-UTF8 strings starting with
version 1.1.0.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</section>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->