Re: [PHP] dir size

2003-10-03 Thread Eugene Lee
On Fri, Oct 03, 2003 at 02:14:14PM -0500, Jay Blanchard wrote: : [snip] : > > > : > > > $foo = exec("du -h"); : > > : > > Hmmm this solution would appear to include the file sizes :D : > : > man du :D : : et du? LMAO! :-D -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] dir size

2003-10-03 Thread Nathan Taylor
Hey, I think I mis-understood you and my first version didn't do what you want, so I added what you needed. 0) { $open2 = opendir($directory); while($folders = readdir($open2)) { $folder = $directory."/".$folders; if($folders == ".." || $folders == ".") continue; if(is_dir($fol

RE: [PHP] dir size

2003-10-03 Thread Jay Blanchard
[snip] > > > $foo = exec("du -h"); > > > > Hmmm this solution would appear to include the file sizes :D > > man du :D et du? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dir size

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 15:02, Gabriel Guzman wrote: > On Friday 03 October 2003 11:48 am, Robert Cummings wrote: > > On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > > > [snip] > > > is it possible to count a size of a dir and all sub dirs in php ? and > > > if, > > > how? > > > [/snip] > > > >

Re: [PHP] dir size

2003-10-03 Thread Curt Zirzow
* Thus wrote Ms Carlsson ([EMAIL PROTECTED]): > is it possible to count a size of a dir and all sub dirs in php ? and if, > how? Dir size is rather vague. Are you wanting how many items are in the dir? or how many bytes is allocated for it? or how many bytes are actually used in the dir? What i

Re: [PHP] dir size

2003-10-03 Thread Gabriel Guzman
On Friday 03 October 2003 11:48 am, Robert Cummings wrote: > On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > > [snip] > > is it possible to count a size of a dir and all sub dirs in php ? and > > if, > > how? > > [/snip] > > > > $foo = exec("du -h"); > > Hmmm this solution would appear to incl

RE: [PHP] dir size

2003-10-03 Thread Robert Cummings
On Fri, 2003-10-03 at 14:45, Jay Blanchard wrote: > [snip] > is it possible to count a size of a dir and all sub dirs in php ? and > if, > how? > [/snip] > > $foo = exec("du -h"); > Hmmm this solution would appear to include the file sizes :D Rob -- .-

RE: [PHP] dir size

2003-10-03 Thread Jay Blanchard
[snip] is it possible to count a size of a dir and all sub dirs in php ? and if, how? [/snip] $foo = exec("du -h"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php