Re: [PHP] Re: Calculate Directory Size

2002-01-26 Thread Jeff Sheltren
I'm sorry, but I won't be much help on the windows side of things, but for UNIX, the job is already done for you! There is a utility called 'du', which will tell you the disk usage of a file (or a folder and its contents). Specifically, you would want to use the -s flag to specify only to show th

[PHP] Re: Calculate Directory Size

2002-01-26 Thread Alan McFarlane
I suggest using an external tool - using PHP would probably be too slow esp. if you're hitting 1000+ users. (Plus, I think you would have to run a lot of clearstatcache()'s which may cause all sorts of problems)... If you do an ls or dir or similar then you could parse the output, however there m