September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool odbc_binmode(resource conn, int mode)
Controls handling of binary data.
Returns:
Always TRUE
Description:
When returning an image field or a large text field through ODBC, you can control what happens to the data when it’s returned by the ODBC driver. Depending on your configuration and the configuration of the companion odbc_longreadlen() function, binary data can be passed straight through or converted to character data. The following table demonstrates actions that are taken depending on the value set with odbc_binmode() and odbc_longreadlen(). The value of odbc_binmode() can also be controlled from the PHP initialization file. This function only affects the ODBC datatypes BINARY, VARBINARY, and LONGVARBINARY.
| odbc_binmode() ... |
|---|
Read now
Unlock full access