Firebird 2.0
PHP5 Programming
Manual

FIREBIRD RESOURCE TYPES

Resources

PHP5 has a special datatype called “resource”. A resource is an abstract datatype that holds data specific to resources used by the various components of the PHP system.

Types

The Firebird driver defines the following resource types:

Resource
Description

conn_hndl

A connection handle. A connection handle holds the data describing a connection to a database on a Firebird server

trx_hndl

A transaction handle. A transaction handle holds the data describing a unit of work on the server that can be commited or rolled back

qry_hndl

A query handle. A query handle holds the data describing a prepared statement that can be executed one or more times.

res_hndl

A result handle. A result handle holds the data describing a result set returned from the server after succesful execution of a SELECT statement.

blob_hndl

A blob handle. A blob handle holds the data describing a connection to an open blob.

event_hndl

An event handle. An event handle holds the data describing an active event handler.

Deallocation

It is good programming practice to free resource when they are no longer used. Note that many types of resources do not only use capacity on the PHP side, but also inside of the Firebird server.


previous page goto index next page

Legal information