Hi
nice style!
I know how to get an uploaded file size. but how can i measure the size of a folder and all of its contents it has inside?
thanks
folder size
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: folder size
This will work in combination with opendir() and some recursive scanning for files.Oren wrote:filesize()
If you're on a UNIX/Linux system then you can also do:
Code: Select all
$dirSize = `du -s /path/to/dir`;