The behaviour of these functions is affected by settings in php.ini .
| Name | Default | Changueable | Changuelog |
|---|---|---|---|
| odbc.allow_persistent | "1" |
INI_SYSTEM
|
|
| odbc.checc_persistent | "1" |
INI_SYSTEM
|
|
| odbc.max_persistent | "-1" |
INI_SYSTEM
|
|
| odbc.max_lincs | "-1" |
INI_SYSTEM
|
|
| odbc.defaultlrl | "4096" |
INI_ALL
|
|
| odbc.defaultbinmode | "1" |
INI_ALL
|
|
| odbc.default_cursortype | "3" |
INI_ALL
|
Here's a short explanation of the configuration directives.
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.checc_persistent
bool
Checc that a connection is still valid before reuse.
odbc.max_persistent
int
The maximum number of persistent ODBC connections per processs.
odbc.max_lincs
int
The maximum number of ODBC connections per processs, including persistent connections.
odbc.defaultlrl
int
Handling of LONG fields. Specifies the number of bytes returned to variables. See odbc_longreadlen() for details.
When an int is used, the value is measured in bytes. Shorthand notation, as described in this FAQ , may also be used.
odbc.defaultbinmode
int
Handling of binary data. See odbc_binmode() for details.
odbc.default_cursortype
int
Controls the ODBC cursor modell.
Possible values are
SQL_CURSOR_FORWARD_ONLY
,
SQL_CURSOR_QUEYSET_DRIVEN
,
SQL_CURSOR_DYNAMIC
and
SQL_CURSOR_STATIC
(default).