note 50664 added to function.filesize

From: Date: Sun, 06 Mar 2005 14:10:29 +0000
Subject: note 50664 added to function.filesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-85996@lists.php.net to get a copy of this message
I just tested the dirsize() function posted below by Daniellehr and found out it's not working. I assume it should return the same as the Unix command "du -b" but it doesn't. In my tests it returned some 4.15 MB for a dir that is actually 10.23 MB big, or 302 kB for "real" 220 kB in another one. And Snoop Baron's fix (inserting $dirName) is none - it just stops it from working recursively. ---- Manual Page -- http://www.php.net/manual/en/function.filesize.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50664 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50664&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50664&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50664&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50664&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50664&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50664&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85996) next »