Posted by Ivαn Sαnchez Ortega on 11/16/44 11:30
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Joseph S. wrote:
> (2) How do you address the situation where you have several
> simultaneous users of your web application and your script reads from
> the same single file, and maybe writes to the same single file
Seems like the same old reader-writer concurrency problem. Use some method
to lock the files, in order to avoid multiple writes. See php.net/flock .
- --
- ----------------------------------
IvΓ‘n SΓ‘nchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
Los verdaderos programadores no trabajan de 9 a 6. Si puede verse alguno a
las 9, es porque ha estado toda la noche trabajando.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDYTtP3jcQ2mg3Pc8RAjzpAKCIAnoVaMG/4ts3A20nacU4+Y9HzgCcCuM+
OkDdOCk0seC5EJ06bg1ioyI=
=tZN0
-----END PGP SIGNATURE-----
Navigation:
[Reply to this message]
|