Re: [PHP] sorting files by date

2003-11-13 Thread David T-G
Justin, et al -- ...and then Justin French said... % % On Wednesday, November 12, 2003, at 12:52 PM, David T-G wrote: % % >OK. So what are you filming? :-) % % www.preshrunk.com -- they are sending me short video diary entries from % the road whilst on tour :) Very cool! ain't modern techn

RE: [PHP] sorting files by date

2003-11-12 Thread Martin Towell
> > If the filename has anything to do with the date, then just > sort it. > > MM > > is numeric and not alphabetic, right? > > I guess I should do some more testing -- didn't expect sort() would > work on dates, but I'll happily go run some tests :) This only really works if your format's YY

Re: [PHP] sorting files by date

2003-11-12 Thread Justin French
On Wednesday, November 12, 2003, at 12:52 PM, David T-G wrote: OK. So what are you filming? :-) www.preshrunk.com -- they are sending me short video diary entries from the road whilst on tour :) % know how to get the file names into an array, but I don't know how to % sort the array so that th

Re: [PHP] sorting files by date

2003-11-11 Thread David T-G
Justin -- ...and then Justin French said... % % Hi, Hi! % % I have a dir of files saved in the following format: -MM-DD.mp4. I OK. So what are you filming? :-) % know how to get the file names into an array, but I don't know how to % sort the array so that the files appear in date

RE: [PHP] sorting files by date

2003-11-11 Thread Martin Towell
surely sort() would do the trick? Martin > -Original Message- > From: Justin French [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 12 November 2003 12:13 PM > To: php > Subject: [PHP] sorting files by date > > > Hi, > > I have a dir of files saved in th

[PHP] sorting files by date

2003-11-11 Thread Justin French
Hi, I have a dir of files saved in the following format: -MM-DD.mp4. I know how to get the file names into an array, but I don't know how to sort the array so that the files appear in date order. My guess was to use strtotime() to get the date into a timestamp, then sort on the timestamp