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 ?



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to