Поведение этих функций зависит от установок в php.ini.
Имя | По умолчанию | Меняемо | Changelog |
---|---|---|---|
mongo.default_host | NULL | PHP_INI_ALL | |
mongo.default_port | NULL | PHP_INI_ALL | |
mongo.auto_reconnect | NULL | PHP_INI_ALL |
Для подробного описания констант PHP_INI_*, обратитесь к документации функции ini_set().
Краткое разъяснение конфигурационных директив.
Default hostname. "localhost" is recommended.
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.
Whether to reconnect to the database if the connection is lost.