Function to take a large object size:
<?php
function pg_lo_size ($lo) {
$pos = pg_lo_tell ($lo);
pg_lo_seek ($lo, 0, PGSQL_SEEK_END);
$size = pg_lo_tell ($lo);
pg_lo_seek ($lo, $pos, PGSQL_SEEK_SET);
return $size;
}
?>
pg_lo_tell
(PHP 4 >= 4.2.0, PHP 5)
pg_lo_tell — Restituisce la posizione attuale in un large object
Descrizione
int pg_lo_tell
( resource
$large_object
)pg_lo_tell() restituisce la posizione attuale (offset dall'inizio di un large object).
Vedere anche pg_lo_seek().
