RE: [PHP] File Random Access

2002-10-30 Thread Ford, Mike [LSS]
> -Original Message- > From: Rick Emery [mailto:[EMAIL PROTECTED]] > Sent: 30 October 2002 14:35 > > You are correct. In fact, simply r+ works; I just tried it. > Thanks Yes, but that's not guaranteed to be binary-safe on Windows -- if your data happens to include null bytes, you might

Re: [PHP] File Random Access

2002-10-30 Thread Rick Emery
You are correct. In fact, simply r+ works; I just tried it. Thanks - Original Message - From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]> To: "'Rick Emery'" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, Octo

RE: [PHP] File Random Access

2002-10-30 Thread Cal Evans
Rick, If you have a file that is to large to simply read into memory, do your inserts and then write back out then you need to move it to a database. Cluttering up the main code base with random flat-file reads and writes is not necessary. If you seriously need it then you can do as suggested, cr

RE: [PHP] File Random Access

2002-10-30 Thread Ford, Mike [LSS]
> -Original Message- > From: Rick Emery [mailto:[EMAIL PROTECTED]] > 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 re