On Thu, 5 Sep 2002, Bret Hughes wrote:

> Now for the obvious question, why do you care?  are you mad because php
> won't buzz a directory in any sorted order?

Exactly. If the directory doesn't list the files in chronological order
internally, I'd have to save the directory entries into an array (I don't
think PHP supports lists, per se), sort it, then read in the files from
the array.

The whole point of the exercise was to avoid all the programming overhead
of havign to put the darn things into a database, and I figured a
filesystem-based system would be faster and easier to maintain. The 
problem is that if I modify files, the directory sort order gets 
completely hosed.

Personally, I'm still not convinced that one can't edit the directory 
directly, although I'd like to avoid having to muck around with inodes. 
The KISS principle would be shredded if I have to do that.

-- 
"The only thing that helps me maintain my slender grip on reality is the
friendship I share with my collection of singing potatoes."

                        - Holly, JMC Vessel *Red Dwarf*



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to