(PHP 4 )

pg_loimport -- Import a large object from file


int pg_loimport (int file [, int connection_id])

The filename argument specifies the pathname of the file to be imported as a large object. Returns FALSE if an error occurred, object id of the just created large object otherwise. Remember that handling large objects in PostgreSQL must happen inside a transaction.

Note: When safe-mode is enabled, PHP checks whether the file(s)/directories you are about to operate on, have the same UID as the script that is being executed.