note 15321 rejected and deleted from function.clearstatcache by jmcastagnetto

From: Date: Wed, 05 Sep 2001 19:37:52 +0000
Subject: note 15321 rejected and deleted from function.clearstatcache by jmcastagnetto
Groups: php.notes 
Request: Send a blank email to php-notes+get-17687@lists.php.net to get a copy of this message
How come this only shows the first filesize of the directory lising and then shows nothing for the rest of the entries in the while loop? Hope someone can help! <?php if ($dir = @opendir("/path/to/directory")) { while($file = readdir($dir)) { $size = filesize (readdir($dir)); echo "$file - (size = $size bytes)<br>"; clearstatcache (); } closedir($dir); } ?>

« previous php.notes (#17687) next »