php_stream size

From: Date: Sat, 25 Jan 2003 15:13:33 +0000
Subject: php_stream size
Groups: php.dev 
Request: Send a blank email to php-dev+get-93679@lists.php.net to get a copy of this message
wez, what's the most portable way to get the size of a stream ? right now im using stream = php_stream_open_wrapper ( path, mode, options, opened); php_stream_seek ( stream, SEEK_END, SEEK_CUR); size = php_stream_tell(stream); note that i have to also process the files, so i rewind immediately afterwards. for the moment, this is ok since im currently only using file-based streams. but i'd like to be able to be as generic as possible. l0t3k ps. would it make sense to have a get_size stream op ?

« previous php.dev (#93679) next »