Re: File Read-Write
| From: | jeremy brand | Date: | Sat, 02 Sep 2000 05:53:02 +0000 |
| Subject: | Re: File Read-Write | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14910@lists.php.net to get a copy of this message | ||
> Does PHP intelligently handle file read-write issues? Say for instance, I
> open a file for writing and shortly thereafter another PHP session wants to
> read from it. What happens? Does PHP allow you to read from the file that's
> currently being written to? If not, does it wait, or does it just post an
> error?
It does, but you need to write all you code to correctly use the
flock() function.
-jeremy brand
_______________________________________________________________________
GnuPG Fingerprint: 9F5E 95E0 1CC2 E054 84EA 6099 8ACD 9DBA D2C0 5EA9
_ http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more __