Re: File Random Access
| From: | David Robley | Date: | Thu, 31 Oct 2002 04:05:31 +0000 |
| Subject: | Re: File Random Access | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122186@lists.php.net to get a copy of this message | ||
In article <00b601c2801a$a5c3e8e0$0500a8c0@honeybee>,
remery@emeryloftus.com 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" <kilimajer@webglobe.sk>
> To: "PHP" <php-general@lists.php.net>
> 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