Re: File Random Access
| From: | Rick Emery | Date: | Wed, 30 Oct 2002 14:34:41 +0000 |
| Subject: | Re: File Random Access | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-122022@lists.php.net to get a copy of this message | ||
You are correct. In fact, simply r+ works; I just tried it.
Thanks
----- Original Message -----
From: "Ford, Mike [LSS]" <M.Ford@lmu.ac.uk>
To: "'Rick Emery'" <remery@emeryloftus.com>; "PHP"
<php-general@lists.php.net>
Sent: Wednesday, October 30, 2002 8:05 AM
Subject: RE: [PHP] File Random Access
> -----Original Message-----
> From: Rick Emery [mailto:remery@emeryloftus.com]
> Sent: 30 October 2002 13:46
>
> 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????
I haven't tested this, so I may be missing something, but doesn't
fopen('filename', 'rb+') or fopen('filename', 'ab+') allow
for this?
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford@lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211