How can we get directory size in PHP?
Posted: Tue Jul 29, 2008 7:54 am
Hi there.
I want to get a directory size by PHP.
for example I used this code :
but I saw this warning :
I'm sure that there is the folder in "../upload".
What's wrong with it and how I can solve it ?
thanks in advance
I want to get a directory size by PHP.
for example I used this code :
Code: Select all
$size = disk_total_space("../upload")/ 1024;
echo $size;Code: Select all
Warning: disk_total_space() [function.disk-total-space]: The system cannot find the path specified. in H:\Apache2.2\htdocs\c-panel\cp_folders.php on line 88What's wrong with it and how I can solve it ?
thanks in advance