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

search for in the

pg_lo_unlink> <pg_lo_seek
[edit] Last updated: Tue, 21 May 2013

view this page in

pg_lo_tell

(PHP 4 >= 4.2.0, PHP 5)

pg_lo_tell Retorna a posição atual de um objeto grande (large object)

Descrição

int pg_lo_tell ( resource $large_object )

pg_lo_tell() retorna a posição atual (deslocamento a partir do início do objeto grande).

Veja também pg_lo_seek().



add a note add a note User Contributed Notes pg_lo_tell - [1 notes]
up
0
Marv-CZ
2 years ago
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 | sitemap | contact | advertising | mirror sites