Disk space usage script

software development


hi 2 all,
i want to know about such a script that allow me to see the used space on the server of certain folders or directories.

suppose i have ‘test’ directory on my www.domain.com/
then i want php to show how much this dir has used space

i used disk_total_space() function but it shows whole server space

pls anyone knows this then let me know