note 100928 modified in function.pg-lo-tell by danbrown

From: Date: Tue, 16 Nov 2010 12:14:24 +0000
Subject: note 100928 modified in function.pg-lo-tell by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-174065@lists.php.net to get a copy of this message
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; } ?> --was-- Function to take a large object size: 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; } http://php.net/manual/en/function.pg-lo-tell.php

« previous php.notes (#174065) next »