Dutch PHP Conference 2025 - Call For Papers

Налаштування під час виконання

На поведінку цих функцій випливають налаштування в php.ini.

Unified ODBC Configuration Options
Назва Початково Де можна змінювати Журнал змін
odbc.allow_persistent "1" INI_SYSTEM  
odbc.check_persistent "1" INI_SYSTEM  
odbc.max_persistent "-1" INI_SYSTEM  
odbc.max_links "-1" INI_SYSTEM  
odbc.defaultlrl "4096" INI_ALL  
odbc.defaultbinmode "1" INI_ALL  
odbc.default_cursortype "3" INI_ALL  
Докладніша інформація та визначення режимів INI_* на сторінці Де можна встановлювати параметри конфігурації.

Тут є коротке пояснення директив конфігурації.

odbc.default_db string

ODBC data source to use if none is specified in odbc_connect() or odbc_pconnect().

odbc.default_user string

User name to use if none is specified in odbc_connect() or odbc_pconnect().

odbc.default_pw string

Password to use if none is specified in odbc_connect() or odbc_pconnect().

odbc.allow_persistent bool

Whether to allow persistent ODBC connections.

odbc.check_persistent bool

Check that a connection is still valid before reuse.

odbc.max_persistent int

The maximum number of persistent ODBC connections per process.

The maximum number of ODBC connections per process, including persistent connections.

odbc.defaultlrl int

Handling of LONG fields. Specifies the number of bytes returned to variables. See odbc_longreadlen() for details.

Коли використовується int, значення вимірюється в байтах. Також можна робити скорочений запис, як це описано в цих ЧаПах.
odbc.defaultbinmode int

Handling of binary data. See odbc_binmode() for details.

odbc.default_cursortype int

Controls the ODBC cursor model. Possible values are SQL_CURSOR_FORWARD_ONLY, SQL_CURSOR_KEYSET_DRIVEN, SQL_CURSOR_DYNAMIC and SQL_CURSOR_STATIC (default).

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top