czy zna ktos z Was skrypt/sposob na sprawdzenie jaki jest rozmiar (ile zajmuje w mb) zawratosci katalogu? moze zawierac podkatalogi..
z gory dzieki za odp
<?php function getDirectorySize($path) { $totalsize = 0; $totalcount = 0; $dircount = 0; { { $nextpath = $path . '/' . $file; { { $dircount++; $result = getDirectorySize($nextpath); $totalsize += $result['size']; $totalcount += $result['count']; $dircount += $result['dircount']; } { $totalcount++; } } } } $total['size'] = $totalsize; $total['count'] = $totalcount; $total['dircount'] = $dircount; return $total; } function sizeFormat($size) { if($size<1024) { return $size." bytes"; } else if($size<(1024*1024)) { return $size." KB"; } else if($size<(1024*1024*1024)) { return $size." MB"; } else { return $size." GB"; } } $path="/httpd/html/pradeep/"; $ar=getDirectorySize($path); ?>