RE: [PHP] File Random Access
| From: | Ford, Mike [LSS] | Date: | Wed, 30 Oct 2002 14:05:54 +0000 |
| Subject: | RE: [PHP] File Random Access | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-122016@lists.php.net to get a copy of this message | ||
> -----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