|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-11-15 09:23 UTC] andrew dot robinson at gni dot co dot uk
the following works fine on small files (<2Gb) but returns negative numbers for files larger.
while ( $file = readdir($dp) ){
clearstatcache();
if (! ereg("^[.]+$|^$",$file) ){
$stats = stat("$DIRNAME$file");
echo "$DIRNAME$file\t" . $stats[7] . "\t" filesize("$DIRNAME$file") . "\n";
}
}
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 13:00:02 2025 UTC |
You could try doing: printf("%u", filesize("your_file"));