On Tue, Jan 26, 2010 at 10:01:12PM +0100, Kim Madsen wrote:
> Christoph Boget wrote on 26/01/2010 21:17:
>> I've looked through the docs but was unable to find out if this is
> possible;
>> I hope it is. Is there a way that you get the size/length of the
> collection
>> to be iterated (e.g. the total number of files) without having to iterate
>> through at least once?
>
> On Linux with safe mode off you can call system("du -hcs THE_DIR") to
> get the size of all files, no iterations needed.
This assumes the "du" command is available on the host system. Check
first to make sure.
Paul
--
Paul M. Foster
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php