Re: [PHP] filesize() Returns a file size. What will return a directorysize()???

2005-03-29 Thread Lupita
Yes it is on a Linux system. I have done a little research and I am having a hard time finding info about executing shell commands with php. This seems like a very interesting possibility being able to use shell commands. Any info you could point me to would be very appreciated. I did find this p

[PHP] filesize() Returns a file size. What will return a directorysize()???

2005-03-28 Thread Lupita
Hello; I have been looking for a solution to get the disk size of a directory. I would like to be able to get the size of a directory with sub directories under it. Will I need to loop through file sizes to get the total directory size? -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Re: reduce the following code "if ($colorVar == 'Black' || $colorVar == 'Red' || $colorVar == 'White' || $colorVar == 'Blue' ){"

2005-03-23 Thread Lupita
Thank You that did it. "Lupita" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello; > Can any one show me a way to reduce the following code? > ## > if ($colorVar == 'Black' || $co

[PHP] reduce the following code "if ($colorVar == 'Black' || $colorVar == 'Red' || $colorVar == 'White' || $colorVar == 'Blue' ){"

2005-03-23 Thread Lupita
Hello; Can any one show me a way to reduce the following code? ## I was thinking there must be a way to place all the Colors into a $allColorVar and check to see if $colorVar = $allColorVar