downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Predefined Constants> <Installation
Last updated: Fri, 20 Nov 2009

view this page in

Runtime Configuration

The behaviour of these functions is affected by settings in php.ini.

Mongo Configure Options
Name Default Changeable Changelog
mongo.default_host "localhost" PHP_INI_ALL
mongo.default_port 27017 PHP_INI_ALL
mongo.auto_reconnect 0 PHP_INI_SYSTEM
mongo.allow_persistent 1 PHP_INI_SYSTEM
mongo.max_persistent -1 PHP_INI_SYSTEM
mongo.max_connections -1 PHP_INI_SYSTEM
mongo.chunk_size 262144 PHP_INI_SYSTEM
mongo.cmd $ PHP_INI_ALL

For further details and definitions of the PHP_INI_* modes, see the Where a configuration setting may be set.

Here's a short explanation of the configuration directives.

mongo.default_host string

Default hostname. "localhost" is recommended.

mongo.default_port string

The default TCP port number to use when connecting to the database server if no other port is specified. The database's default is 27017.

mongo.auto_reconnect bool

Whether to reconnect to the database if the connection is lost.

mongo.allow_persistent bool

If persistent connections are allowed.

mongo.max_persistent int

The number of simultaneous persistent connections to allow. -1 allows unlimited persistent connections.

mongo.max_connections int

The number of simultaneous connections to allow. -1 allows unlimited connections.

mongo.chunk_size int

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.

mongo.cmd string

A character to be used in place of $.



add a note add a note User Contributed Notes
Runtime Configuration
There are no user contributed notes for this page.

Predefined Constants> <Installation
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites