Possible Duplicate:
PHP – get the size of a directory
I have 5 files in a directory and it shows file size = 4096 but when i delete 4 files and there is only 1 file left, it still shows the same size. that is how i am getting the file size
echo filesize("user_files/".$uid."/".$rs['DirectoryName']);