filesize

From: Date: Mon, 28 Aug 2000 23:05:14 +0000
Subject: filesize
Groups: php.general 
Request: Send a blank email to php-general+get-14020@lists.php.net to get a copy of this message
Why would two lines have the actual filesize listed, and the rest be blank? while ($file = readdir($handle)) { $file_size ="0"; clearstatcache (); if ($file != "." && $file != "..") { $file_weight = filesize ( "$file" ); $total_size += filesize("$file"); echo " &nbsp; &nbsp; File: $file &nbsp;&nbsp;Size: $file_weight<br>"; } } Any clues? perhaps I need to do a $stat_info =stat($file) to get a better reading? Thanks, -- Christopher C.M. Allen http://design.driver8.org/ Email: callen@driver8.org

« previous php.general (#14020) next »