Re: note 15321 added to function.clearstatcache

From: Date: Wed, 05 Sep 2001 19:44:55 +0000
Subject: Re: note 15321 added to function.clearstatcache
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-17688@lists.php.net to get a copy of this message
Shouldn't that be $size = filesize($file); ??? Your note has been removed, the notes to the manual is *not* the place to ask questions. --- simon@intranetics.co.uk wrote: > 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); > } > > ?> > > > http://www.php.net/manual/en/function.clearstatcache.php > > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-notes-unsubscribe@lists.php.net > For additional commands, e-mail: > php-notes-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== --- Jesus M. Castagnetto <jmcastagnetto@php.net> __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com

« previous php.notes (#17688) next »