RE: [PHP] Read Files
| From: | Randum Ian | Date: | Sat, 30 Nov 2002 21:59:27 +0000 |
| Subject: | RE: [PHP] Read Files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126577@lists.php.net to get a copy of this message | ||
Would it just be easier to do it by file last modified date then?
-----Original Message-----
From: Jeffrey B.Ferland [mailto:jferland@lplonline.org]
Sent: 30 November 2002 21:57
To: Randum Ian
Subject: Re: [PHP] Read Files
On Saturday 30 November 2002 04:47 pm, you wrote:
> Thanks a lot Chris that was a great help.
>
> The date is in the last part of the filename. In the example I have
> posted below:
>
> Ministry is the name of the club.
> Full is the type of the content.
> 6122002 is the date - It is in the form ddmmyyyy so the example here
is
> 6th December 2002.
Date format is best set as YYYY-MM-DD, but most importantly having
leading
0's. Ministry as in Ministry of Sounds?
> Is there a simple way I can just grab the date and sort it by order?
> Should I change the format of the date to make it easier or something?
Anyway, the easiest thing I can think of is to run a regex enumerating
all
the files that are marked "full" and then sorting them from there by
regexing
out the different dates. Even then, it'll take a good deal of coding...
-Jeff
SIG: HUP