Na działanie tych funkcji wpływają ustawienia zawarte w pliku php.ini.
Nazwa | Domyślnie | Możliwość zmian | Rejestr zmian |
---|---|---|---|
mongo.default_host | NULL | PHP_INI_ALL | |
mongo.default_port | NULL | PHP_INI_ALL | |
mongo.auto_reconnect | NULL | PHP_INI_ALL |
Szczegóły i definicje dotyczące działania PHP_INI_* znajdują się w rozdziale Where a configuration setting may be set.
Oto krótkie wyjaśnienie dyrektyw konfiguracji.
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.