Re: [PHP] touch()ing it....advise needed.

2006-05-15 Thread Richard Lynch
You could just do a touch() on all the files with no test for existence, if there will be a LOT of files... That will save a little bit of work, and might be worthwhile info to track, or at least not mess things up to have the filemtime altered all the time. Of course, you also need to be VERY

[PHP] touch()ing it....advise needed.

2006-05-13 Thread Ryan A
Hey, Heres my setup, I have a directory full of files and I get a request with an array of filenames For this example: a.txt b.txt c.txt if the above files dont already exist I need to create them (I am using touch() instead of fopen()) My question is which would you recommend, doing a readdir()

Re: [PHP] touch()ing it....advise needed.

2006-05-13 Thread tedd
At 5:48 AM -0700 5/13/06, Ryan A wrote: Hey, Heres my setup, I have a directory full of files and I get a request with an array of filenames For this example: a.txt b.txt c.txt if the above files dont already exist I need to create them (I am using touch() instead of fopen()) My question is

Re: [PHP] touch()ing it....advise needed.

2006-05-13 Thread John Hicks
Ryan A wrote: Hey, Heres my setup, I have a directory full of files and I get a request with an array of filenames For this example: a.txt b.txt c.txt if the above files dont already exist I need to create them (I am using touch() instead of fopen()) My question is which would you recommend,

Re: [PHP] touch()ing it....advise needed.

2006-05-13 Thread Edward Vermillion
On May 13, 2006, at 7:48 AM, Ryan A wrote: Hey, Heres my setup, I have a directory full of files and I get a request with an array of filenames For this example: a.txt b.txt c.txt if the above files dont already exist I need to create them (I am using touch() instead of fopen()) My question

Re: [PHP] touch()ing it....advise needed.

2006-05-13 Thread Ryan A
Hey Tedd, John and Ed, Will look into what you wrote, am testing some stuff and comparing speeds and performance right now. Ed, the mod/access is used for other stuff like expiring files so I dont think I will be able to go with your idea. I appreciate all your input.Thanks! -Ryan --- tedd