note 19604 deleted from function.disk-total-space by nlopess
| From: | nlopess@php.net | Date: | Mon, 03 May 2004 13:37:44 +0000 |
| Subject: | note 19604 deleted from function.disk-total-space by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-69138@lists.php.net to get a copy of this message | ||
Note Submitter: madchaz@madchaz.com
----
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.