note 19604 added to function.disk-total-space
| From: | madchaz at madchaz dot com | Date: | Tue, 05 Mar 2002 16:04:10 +0000 |
| Subject: | note 19604 added to function.disk-total-space | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-27377@lists.php.net to get a copy of this message | ||
I have 2 things to add. First is that the note I posted above is not valide, it causes problemes
(the size is not acurate at all). This is due to me not understanding exactly how the function works
at the moment of posting.
Second, to save people trouble I faced. For the function to work right and actualy give the
recursive ability, you MUST NOT add the / at the very end of the $dir or else you will only get the
value of the size of the very first directory. so the $dir entry needs to look something like this
/home/madchaz/public_html/test
in order to test the size of the /home/madchaz/public_html/test/ folder and all it's subdirs.
If you add the last / you only get the size of the test folder itself, not of the folders inside it.
--
http://www.php.net/manual/en/function.disk-total-space.php
http://master.php.net/manage/user-notes.php?action=edit+19604
http://master.php.net/manage/user-notes.php?action=delete+19604
http://master.php.net/manage/user-notes.php?action=reject+19604