PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- dmitri926 AT yahoo DOT com (07-Jan-2003 12:08):
- i created function dir_size, it finds out the size of files in a
- directory and its subdirectories using recursion. it returns the
- total size in bytes.
- function dir_size($dir) {
- $totalsize=0;
- if ($filename!="." && $filename!="..")
- {
- $totalsize+=dir_size($dir."/".$filename);
- }
- }
- }
- return $totalsize;
- }