Re: Question

From: Date: Fri, 12 Jan 2001 12:17:46 +0000
Subject: Re: Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34236@lists.php.net to get a copy of this message
>Is there a way in PHP to get the size of a directory? (so I can see how much disk space my >>users are using in their home directory). >Can someone also tell me what the PHP General list is exactly. Is it run by PHP folk only? Can >>I subscribe to this list somewhere and maybe help someone else out for a change? Yes! Try to see this, it isn't tested, just maked out of memory! <? $totalfilesize = 0; $dir=opendir('.'); while (($files = readdir($dir))!==false) { $totalfilesize .= filesize($files); } closedir($dir); print($totalfilesize." bytes"); ?>

« previous php.general (#34236) next »