PHP 手冊
上一頁 |  | 下一頁

# XXX.FrontBase Functions

# 介紹

These functions allow you to access FrontBase database servers. More information about FrontBase can be found at http://www.frontbase.com/.

Documentation for FrontBase can be found at http://www.frontbase.com/cgi-bin/WebObjects/FrontBase.woa/wa/productsPage?currentPage=Documentation.

Frontbase support has been added to PHP 4.0.6.

# 需求

You must install the FrontBase database server or at least the fbsql client libraries to use this functions. You can get FrontBase from http://www.frontbase.com/.

# 安裝

In order to have these functions available, you must compile PHP with fbsql support by using the --with-fbsql[=DIR] option. If you use this option without specifying the path to fbsql, PHP will search for the fbsql client libraries in the default installation location for the platform. Users who installed FrontBase in a non standard directory should always specify the path to fbsql: --with-fbsql=/path/to/fbsql. This will force PHP to use the client libraries installed by FrontBase, avoiding any conflicts.

# 執行時期組態

`php.ini`中的設定會影響這些函數的行為。

表格 1.FrontBase configuration options

Name | Default | Changeable
--- | --- | ---
fbsql.allow_persistent | "1" | PHP_INI_SYSTEM
fbsql.generate_warnings | "0" | PHP_INI_SYSTEM
fbsql.autocommit | "1" | PHP_INI_SYSTEM
fbsql.max_persistent | "-1" | PHP_INI_SYSTEM
fbsql.max_links | "128" | PHP_INI_SYSTEM
fbsql.max_connections | "128" | PHP_INI_SYSTEM
fbsql.max_results | "128" | PHP_INI_SYSTEM
fbsql.batchSize | "1000" | PHP_INI_SYSTEM
fbsql.default_host | NULL | PHP_INI_SYSTEM
fbsql.default_user | "_SYSTEM" | PHP_INI_SYSTEM
fbsql.default_password | "" | PHP_INI_SYSTEM
fbsql.default_database | "" | PHP_INI_SYSTEM
fbsql.default_database_password | "" | PHP_INI_SYSTEM

For further details and definition of the PHP_INI_* constants see ini_set().

# 資源類型

# 預先定義常數

以下的常數由此延伸定義，只在這個延伸被編譯成PHP或實行時期被動態載入時有效。

`FBSQL_ASSOC` (integer)

`FBSQL_NUM` (integer)

`FBSQL_BOTH` (integer)

`FBSQL_LOCK_DEFERRED` (integer)

`FBSQL_LOCK_OPTIMISTIC` (integer)

`FBSQL_LOCK_PESSIMISTIC` (integer)

`FBSQL_ISO_READ_UNCOMMITTED` (integer)

`FBSQL_ISO_READ_COMMITTED` (integer)

`FBSQL_ISO_REPEATABLE_READ` (integer)

`FBSQL_ISO_SERIALIZABLE` (integer)

`FBSQL_ISO_VERSIONED` (integer)

`FBSQL_UNKNOWN` (integer)

`FBSQL_STOPPED` (integer)

`FBSQL_STARTING` (integer)

`FBSQL_RUNNING` (integer)

`FBSQL_STOPPING` (integer)

`FBSQL_NOEXEC` (integer)

`FBSQL_LOB_DIRECT` (integer)

`FBSQL_LOB_HANDLE` (integer)

上一頁 | 最開頭 | 下一頁
fam_suspend_monitor | 上一層 | fbsql_affected_rows