PHP 手冊
前一頁 |  | 下一頁

# pg_lo_open

(PHP 4 >= 4.2.0, PHP 5)

pg_lo_open -- Open a large object

## Description

resource pg_lo_open ( resource connection, int oid, string mode )

pg_lo_open() opens a 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.

警告
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.

> 注: This function used to be called pg_loopen().

See also pg_lo_close() and pg_lo_create().

前一頁 | 內容 | 下一頁
pg_lo_import | 上一層 | pg_lo_read_all