In article <00b601c2801a$a5c3e8e0$0500a8c0@honeybee>, [EMAIL PROTECTED] says... > I never noticed before...there is no easy way to perform random-access read and >WRITE on a > file. > > I vote/recommend/suggest that this most basic functionality be added to the next >release > of PHP. This would not be an enhancement; rather, it is correcting a serious flaw. > > Or am I missing something???? > > ----- Original Message ----- > From: "Marek Kilimajer" <[EMAIL PROTECTED]> > To: "PHP" <[EMAIL PROTECTED]> > Sent: Wednesday, October 30, 2002 6:28 AM > Subject: Re: [PHP] write on the begin of a file > > > There is no insert in fputs, you need to make a new file and then rename > it to > your old one, or build it in the memory and then overwrite it. > > Sébastien Eckert -- Netika wrote:
I'm going to stick my neck out here - as I understand it, this is not an omission in php, rather it is a restriction of the underlying OS/file system. <Extends neck more> To the best of my knowledge, neither the FAT based system of M$DOS or e2fs under *nix will allow random access _to the contents of a specific file_ without the need to read/rewrite the entire file. Is there in fact any file system that allows this? Now I shall don my Nomex gear and await responses from those more knowledgeable :-) Cheers -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php