Posted by Chung Leong on 10/16/39 11:53
ImOk wrote:
> My suggestion is to use XML. PHP and Javascript has the Dom class that
> supports this format very well. Its also easily extensible. And best of
> all it's a text file.
XML and any text format is very inefficiency when updates/deletions are
frequent, as you have to rewrite the file everytime. For a mailbox,
that's unacceptable since the file size will likely be fairly large. A
suitable format requires a directory of sort storing the offsets of
records, so you can quicly seek to the them and modify them in place.
Whatever you come up with it'll end up resembling a database. So why
not just use what's there already?
Navigation:
[Reply to this message]
|