Re: [PHP] File read and sort question

2003-10-06 Thread Burhan Khalid
Susan Ator wrote: I have no control over 1) file naming 2) file inclusion in the directory 3) file removal from the directory This is all being handled through another program written in C. Hrmm what can you do to the files? If this is a linux system, you can write a shel

Re: [PHP] File read and sort question

2003-10-06 Thread Marek Kilimajer
Susan Ator wrote: I have no control over 1) file naming 2) file inclusion in the directory 3) file removal from the directory This is all being handled through another program written in C. So far I have been able to put the relevant info from each file into the database t

RE: [PHP] File read and sort question

2003-10-06 Thread Susan Ator
003 1:06 PM To: PHP-General Subject: Re: [PHP] File read and sort question Susan Ator wrote: > The problem with using a database is the files within the directory are > changing on, sometimes, a minute by minute basis. I think reading them into > the database then deleting them when th

Re: [PHP] File read and sort question

2003-10-06 Thread Brad Pauly
Susan Ator wrote: The problem with using a database is the files within the directory are changing on, sometimes, a minute by minute basis. I think reading them into the database then deleting them when they are deleted from the directory would be a huge amount of overhead. No? Something else whic

Re: [PHP] File read and sort question

2003-10-06 Thread Chris Sherwood
Susan It appears that you will want to use a database. and update it when the files are removed. (possibly provide a page to do uploading, modifications and deletions with .. this way you can automate the db) other than that you will have to recreate everything each time you process or display th

RE: [PHP] File read and sort question

2003-10-06 Thread Robert Cummings
tem, sort the entries, and cache the sorted result. (this is very database like). Cheers, Rob. > > Susan > > -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Monday, October 06, 2003 12:18 PM > To: Susan Ator > Cc: PHP-Genera

RE: [PHP] File read and sort question

2003-10-06 Thread Susan Ator
read and sort question On Mon, 2003-10-06 at 12:10, Susan Ator wrote: > I have a directory with an ever-changing number of files. Some will be > removed and others added on a continuing basis. > > The files are ascii with the following layout: > > Name > Subject line &

Re: [PHP] File read and sort question

2003-10-06 Thread Robert Cummings
On Mon, 2003-10-06 at 12:10, Susan Ator wrote: > I have a directory with an ever-changing number of files. Some will be > removed and others added on a continuing basis. > > The files are ascii with the following layout: > > Name > Subject line > mm/dd/ > hh:mm > > I can easily get a lis

[PHP] File read and sort question

2003-10-06 Thread Susan Ator
I have a directory with an ever-changing number of files. Some will be removed and others added on a continuing basis. The files are ascii with the following layout: Name Subject line mm/dd/ hh:mm I can easily get a list of files and pull the necessary information. I need, however to be