介绍
InterBase is a popular database put out by Borland/Inprise. More
information about InterBase is available at http://www.interbase.com/. Oh, by the way, InterBase
just joined the open source movement!
注:
Full support for InterBase 6 was added in PHP 4.0.
This database uses a single quote (') character for escaping, a
behavior similar to the Sybase database, add to your
php.ini the following directive:
安装
To enable InterBase support configure PHP
--with-interbase[=DIR], where DIR is the
InterBase base install directory, which defaults to
/usr/interbase.
Note to Win32 Users:
In order to enable this module on a Windows environment, you must copy
gds32.dll from the DLL folder of the PHP/Win32 binary
package to the SYSTEM32 folder of your windows machine. (Ex: C:\WINNT\SYSTEM32
or C:\WINDOWS\SYSTEM32). In case you installed the InterBase database server on the
same machine PHP is running on, you will have this DLL already. Therefore you don't
need to copy gds32.dll from the DLL folder.
运行时配置
这些函数的行为受到全局配置文件 php.ini 的影响。
表格 1. InterBase configuration options
Name | Default | Changeable |
---|
ibase.allow_persistent | "1" | PHP_INI_SYSTEM |
ibase.max_persistent | "-1" | PHP_INI_SYSTEM |
ibase.max_links | "-1" | PHP_INI_SYSTEM |
ibase.default_user | NULL | PHP_INI_ALL |
ibase.default_password | NULL | PHP_INI_ALL |
ibase.timestampformat | "%m/%d/%Y%H:%M:%S" | PHP_INI_ALL |
ibase.dateformat | "%m/%d/%Y" | PHP_INI_ALL |
ibase.timeformat | "%H:%M:%S" | PHP_INI_ALL |
For further details and definition of the PHP_INI_* constants see
ini_set().
预定义常量
由于这些常量是由该扩展模块定义的,因此只有在该扩展模块被编译到 PHP 中,或者在运行时被动态加载后,这些常量才有效。