From: gremlin <abba.bry...@gmail.com>
Date: Thu, 15 Nov 2012 12:35:16 -0800 (PST)
Local: Thurs, Nov 15 2012 3:35 pm
Subject: Re: counting specific files in foldeR?
Here is a link cleaning up the general idea and using some class methods to https://gist.github.com/4081086
On Thursday, November 15, 2012 6:26:22 AM UTC-8, Shad Yueh wrote:
> Thanks A LOT!!!
> Em terça-feira, 31 de agosto de 2010 04h59min32s UTC-4, Jeremy Burns >> OK - I haven't tested this so it's a bit guessy and you might need to >> $directory = "../images/team/harry/";
>> $fileTypes = array('jpg', 'pdf', 'xls', 'doc', 'ppt');
>> foreach $fileTypes as $fileType:
>> die(debug($fileCount));
>> Someone else might know a way of placing all filetypes into a single >> Jeremy Burns
>> jerem...@classoutfit.com
>> On 31 Aug 2010, at 09:50, Tomfox Wiranata wrote:
>> > you mean i should fill the array with all the filetypes i want to
>> > i have no idea how to code this... :(
>> > On 31 Aug., 10:39, Jeremy Burns | Class Outfit
>> >> Jeremy Burns
>> >> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>> >> On 31 Aug 2010, at 09:33, Tomfox Wiranata wrote:
>> >>> yes...but then all the jpgs and png get counted too.....
>> >>> On 31 Aug., 10:28, Jeremy Burns | Class Outfit
>> >>>> Jeremy Burns
>> >>>> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>> >>>> On 31 Aug 2010, at 09:18, Tomfox Wiranata wrote:
>> >>>>> hi jeremy,
>> >>>>> yes i wannt a count of all files with the filetypes i mentioned.....
>> >>>>> On 31 Aug., 10:05, Jeremy Burns | Class Outfit
>> >>>>>> Jeremy Burns
>> >>>>>> jeremybu...@classoutfit.comhttp://www.classoutfit.com
>> >>>>>> On 31 Aug 2010, at 08:49, Tomfox Wiranata wrote:
>> >>>>>>> hi,
>> >>>>>>> i want to count specific files in a folder and i found some code >> >>>>>>> $directory = "../images/team/harry/";
>> >>>>>>> this is only counting jpgs. but how can i extend this code to >> >>>>>>> big thx :)
>> >>>>>>> Check out the new CakePHP Questions >> >>>>>>> You received this message because you are subscribed to the >> >>>>> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp >> >>>>> You received this message because you are subscribed to the Google >> >>> Check out the new CakePHP Questions sitehttp://cakeqs.organd help >> >>> You received this message because you are subscribed to the Google >> > Check out the new CakePHP Questions site http://cakeqs.org and help >> > You received this message because you are subscribed to the Google You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||