The pg_host function returns the name of the host for the connection. See pg_exec for
an example of use.
pg_loclose(integer file)
The pg_loclose function closes a large object. The file argument is a file identifier
returned by pg_loopen. See pg_loopen for an example of use.
integer pg_locreate(integer connection)
The pg_locreate function creates a large object and returns the OID. The object is
created with both read and write access.
<?
$Object = pg_locreate($Connection);
?>
integer pg_loopen(integer connection, integer object, string
mode)
The pg_loopen function opens a large object. The object argument is a valid large object
ID and the mode may be one of r, w, rw. A file identifier is returned.
<?
$Object = pg_locreate($Connection);
$File = pg_loopen($Connection, $Object, "r");
pg_loclose($File);
?>
string pg_loread(integer file, integer length)
The pg_loread function returns the large object as a string. The length argument
specifies a maximum length to return.
<?
$Object = pg_locreate($Connection);
$File = pg_loopen($Connection, $Object, "r");
$Contents = pg_loread($File, 4096);
?>
pg_loreadall(integer file)