The dir_size function provided by "marting.dc AT gmail.com" works great, except the $mas variable is not initialized. Add: $mas = 0;before the while() loop.
<< Back to user notes page