PHP Manual
Prev |  | Next

# pg_loopen

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

pg_loopen -- Open a large object

## Description

``resource pg_loopen` (resource connection, int oid, string mode)`

pg_loopen() open an Inversion Large Object and returns large object resource. The resource encapsulates information about the connection. `oid` specifies a valid large object oid and `mode` can be either "r", "w", or "rw". It returns `FALSE` if there is an error.

Warning
Do not close the database connection before closing the large object resource.

To use the large object (lo) interface, it is necessary to enclose it within a transaction block.

See also pg_loclose() and pg_locreate().

Prev | Home | Next
pg_loimport | Up | pg_loread