Firebird 2.0
PHP5 Programming
Manual

FIREBIRD PHP.INI CONFIGURATION

Purpose

Use the php.ini file to define some system-wide defaults for the Firebird driver.

Overview

The following configuration variables are available:

Variable 
Default
Scope
ibase.allow_persistent
1”
PHP_INI_SYSTEM
ibase.max_persistent
-1”
PHP_INI_SYSTEM
ibase.max_links
-1”
PHP_INI_SYSTEM
ibase.default_db
Null
PHP_INI_SYSTEM
ibase.default_user
Null
PHP_INI_ALL
ibase.default_password
Null
PHP_INI_ALL
ibase.default_charset
Null
PHP_INI_ALL
ibase.timestampformat
"%Y-%m-%d %H:%M:%S"
PHP_INI_ALL
ibase.dateformat
"%Y-%m-%d"
PHP_INI_ALL
ibase.timeformat
"%H:%M:%S"
PHP_INI_ALL

Description

These configuration parameters have the following meaning:

  • ibase.allow_persistent
    This parameter is a boolean (0/1). It specifies whether to allow persistent connections to Firebird.

  • ibase.max_persistent integer
    This parameter is an integer. It specifies the maximum number of persistent Firebird connections per PHP process. New connections created with fbird_pconnect() will be non-persistent once this number has been exceeded. If not set, or set to -1, there is no limit.

  • ibase.max_links integer
    This parameter is an integer. It specifies the maximum number of Firebird connections per PHP process, including persistent connections, if any. If not set, or set to -1, there is no limit.

  • ibase.default_db string
    This parameter is a string. It specifies the default database to connect to when a call to fbird_connect() or fbird_pconnect() is made without specifying a database name. If this value is set and SQL safe mode is enabled, no other connections than to this database will be allowed.

  • ibase.default_user string
    This parameter is a string. It specifies the user name to use when connecting to a database if no user name is given

  • ibase.default_password string
    This parameter is a string. It specifies the password to use when connecting to a database, if no password is given.

  • ibase.default_charset string
    This parameter is a string. It specifies the character set to use when connecting to a database, if no character set is given. If set to Null, the character set 'None' will be used.

  • ibase.timestampformat string
    This parameter is a string. It sets the date and time format that is used when returning timestamp values from a result set, or when binding arguments to timestamp parameters.

  • ibase.dateformat string
    This parameter is a string. It sets the date format that is used when returning date values from a result set, or when binding arguments to date parameters.

  • ibase.timeformat string
    This parameter is a string. It sets the time format that is used when returning time values from a result set, or when binding arguments to time parameters.


previous page goto index next page

Legal information