Sybase functionsPodręcznik PHPPoprzedniNastępnyC. Sybase functionsWprowadzenie
Wymagania
Instalacja
To enable Sybase-DB support configure PHP
--with-sybase[=DIR]. DIR is the
Sybase home directory, defaults to /home/sybase.
To enable Sybase-CT support configure PHP
--with-sybase-ct[=DIR]. DIR is the
Sybase home directory, defaults to /home/sybase.
Konfiguracja startowa
The behaviour of these functions is affected by settings in php.ini.
Tabela 1. Sybase configuration optionsNameDefaultChangeablesybase.allow_persistent"On"PHP_INI_SYSTEMsybase.max_persistent"-1"PHP_INI_SYSTEMsybase.max_links"-1"PHP_INI_SYSTEMsybase.interface_file "/usr/sybase/interfaces"PHP_INI_SYSTEMsybase.min_error_severity"10"PHP_INI_ALLsybase.min_message_severity"10"PHP_INI_ALLsybase.compatability_mode"Off"PHP_INI_SYSTEMmagic_quotes_sybase"Off"PHP_INI_ALL
Here is a short explanation of the configuration directives.
sybase.allow_persistent
boolean
Whether to allow persistent Sybase connections.
sybase.max_persistent
integer
The maximum number of persistent Sybase connections per
process. -1 means no limit.
sybase.max_links
integer
The maximum number of Sybase connections per process,
including persistent connections. -1 means no limit.
sybase.min_error_severity
integer
Minimum error severity to display.
sybase.min_message_severity
integer
Minimum message severity to display.
sybase.compatability_mode
boolean
Compatability mode with old versions of PHP 3.0. If on, this will cause
PHP to automatically assign types to results according to their Sybase
type, instead of treating them all as strings. This compatability mode
will probably not stay around forever, so try applying whatever
necessary changes to your code, and turn it off.
magic_quotes_sybase
boolean
If magic_quotes_sybase is on, a
single-quote is escaped with a single-quote instead of a
backslash if magic_quotes_gpc
or magic_quotes_runtime
are enabled.
Notatka:
Note that when magic_quotes_sybase
is ON it completely overrides magic_quotes_gpc
. In this case even when
magic_quotes_gpc is enabled
neither double quotes, backslashes or NUL's
will be escaped.
Tabela 2. Sybase-CT configuration optionsNameDefaultChangeablesybct.allow_persistent"On"PHP_INI_SYSTEMsybct.max_persistent"-1"PHP_INI_SYSTEMsybct.max_links"-1"PHP_INI_SYSTEMsybct.min_server_severity"10"PHP_INI_ALLsybct.min_client_severity"10"PHP_INI_ALLsybct.hostnameNULLPHP_INI_ALL
Here is a short explanation of the configuration directives.
sybct.allow_persistent
boolean
Whether to allow persistent Sybase-CT connections.
The default is on.
sybct.max_persistent
integer
The maximum number of persistent Sybase-CT connections per
process. The default is -1 meaning unlimited.
sybct.max_links
integer
The maximum number of Sybase-CT connections per process,
including persistent connections. The default is -1 meaning
unlimited.
sybct.min_server_severity
integer
Server messages with severity greater than or equal to
sybct.min_server_severity will be reported as warnings. This
value can also be set from a script by calling
sybase_min_server_severity(). The default
is 10 which reports errors of information severity or greater.
sybct.min_client_severity
integer
Client library messages with severity greater than or equal to
sybct.min_client_severity will be reported as warnings. This
value can also be set from a script by calling
sybase_min_client_severity(). The default
is 10 which effectively disables reporting.
sybct.hostname
string
The name of the host you claim to be connecting from, for
display by sp_who. The default is none.
For further details and definition of the PHP_INI_* constants see
ini_set().
Typy zasobów
Predefiniowane stałeTo rozszerzenie nie definiuje żadnych stałych.Spis treścisybase_affected_rows -- get number of affected rows in last querysybase_close -- close Sybase connectionsybase_connect -- open Sybase server connectionsybase_data_seek -- move internal row pointersybase_fetch_array -- fetch row as arraysybase_fetch_field -- get field informationsybase_fetch_object -- fetch row as objectsybase_fetch_row -- get row as enumerated arraysybase_field_seek -- set field offsetsybase_free_result -- free result memorysybase_get_last_message -- Returns the last message from the serversybase_min_client_severity -- Sets minimum client severitysybase_min_error_severity -- Sets minimum error severitysybase_min_message_severity -- Sets minimum message severitysybase_min_server_severity -- Sets minimum server severitysybase_num_fields -- get number of fields in resultsybase_num_rows -- get number of rows in resultsybase_pconnect -- open persistent Sybase connectionsybase_query -- send Sybase querysybase_result -- get result datasybase_select_db -- select Sybase databasePoprzedniSpis treściNastępnywordwrapPoczątek rozdziałusybase_affected_rows
Wyszukiwarka
Podobne podstrony:
ref sybaseref sybaseref sybasefunction sybase min client severityref oraclefunction sybase fetch rowref mathfunction sybase fetch arrayref miscref xmlpercepcja refref dbxref dbmref ingresref overloadref xmlrpcref execref aspellref oraclewięcej podobnych podstron