This topic is locked

Show space used?

3/15/2010 6:41:25 AM
PHPRunner General questions
S
swanside author

I have a website where users can upload and store files. But, How can I show how much space a user has used when they have logged in?
Cheers

Paul.

R
rgfischerjr 3/15/2010



I have a website where users can upload and store files. But, How can I show how much space a user has used when they have logged in?
Cheers

Paul.


You want to show the size of the individual users folder and sub-folders, correct? I think the methods vary depending on Linux or Windows servers. Do you know which OS your server is running? There are several examples at http://php.net/manual/en/function.filesize.php for both file size and directory size.

S
swanside author 3/18/2010

Thanks.

Wasnt sure if there was just a bit of code I could put on the page to show what the user has used?

Cheers