Received: from SpoolDir by JASPIS (Mercury 1.48); 11 Sep 02 16:23:56 +0200 Return-path: Received: from cache-ov.ha-vel.cz (10.0.1.254) by spsch-ostrava.cz (Mercury 1.48) with ESMTP; 11 Sep 02 16:23:13 +0200 Received: from interval.cz (www.interval.cz [62.168.63.140]) by cache-ov.ha-vel.cz (8.11.6/8.11.6) with ESMTP id g8BENaX31392 for ; Wed, 11 Sep 2002 16:23:38 +0200 Received: from ns.xnet.cz [213.151.79.40] by interval.cz with ESMTP (SMTPD32-7.07) id A1BC3500B6; Wed, 11 Sep 2002 16:22:52 +0200 Received: from kodera (r2a196.mistral.cz [62.245.64.196]) by ns.xnet.cz (8.9.3/8.9.3) with SMTP id QAA29913 for ; Wed, 11 Sep 2002 16:22:52 +0200 (CEST) Message-ID: <001101c2599e$9039b100$c440f53e@mistral.cz> From: "Jan Kodera" To: References: <010701c2597c$f6131e20$0b0111ac@megaherz> Subject: Re: PHP Zjisteni velikosti adresare Date: Wed, 11 Sep 2002 16:21:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Precedence: bulk Sender: help-owner@interval.cz Reply-To: help@interval.cz co zkusit tohle function dirsize($dir) { // calculate the size of files in $dir, (it descends recursively into other dirs) $dh = opendir($dir); $size = 0; while (($file = readdir($dh)) !== false) if ($file != "." and $file != "..") { $path = $dir."/".$file; if (is_dir($path)) $size += dirsize($path); elseif (is_file($path)) $size += filesize($path); } closedir($dh); return $size; } jinak original ke zhlednuti na http://www.php.net/manual/cs/function.disk-total-space.php S pozdravem Jan Kodera ----- Original Message ----- From: "Jan Herzl" To: "Interval help" Sent: Wednesday, September 11, 2002 12:21 PM Subject: PHP Zjisteni velikosti adresare > Zdravim, > jak v php bezici na linuxu zjistim velikost adresare? Komplet soucet vsech > souboru i v jeho podadresarich. Funkci primo v php nemuzu najit, a nevim jak > se to v linuxu zjistuje abych mohl zavolat externi prikaz. > > Dik > Honza > > > > Pravidla konference - http://www.interval.cz/pravidla.txt Pravidla konference - http://www.interval.cz/pravidla.txt