Hi Holger,
indeed OT, but a very interesting point for all flat file based storage.
Holger wrote:it seems it has some problems locking the textfile with the stats (at least on my installation).
I've noticed that an flock() was included with version 1.2. But if I'm not mistaken this is useless, as it's only called when the file is written (mode 'w'), but flock() doesn't work in this mode:
http://de2.php.net/manual/en/function.flock.php wrote:Because flock() requires a file pointer, you may have to use a special lock file to protect access to a file that you intend to truncate by opening it in write mode (with a "w" or "w+" argument to fopen()).
And yes, flock() might totally fail on IIS...
Christoph