downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

pg_lo_unlink> <pg_lo_seek
[edit] Last updated: Fri, 10 Feb 2012

view this page in

pg_lo_tell

(PHP 4 >= 4.2.0, PHP 5)

pg_lo_tell Zwraca wskaźnik położenia w wielkim obiekcie (Large Object - LO)

Opis

int pg_lo_tell ( resource $large_object )

pg_lo_tell() zwraca aktualną pozycję wskaźnika położenia w wielkim obiekcie (LO) liczoną od jego początku.

Zobacz także pg_lo_seek().



add a note add a note User Contributed Notes pg_lo_tell
Marv-CZ 15-Nov-2010 10:26
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;
}
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites