Looking for betatesters for memberpages 3.0

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Re: Looking for betatesters for memberpages 3.0

Postby Holger » Tue Jun 12, 2012 9:11 pm

Hey folks,

OT, but anyway...
svasti wrote:Jerry could also dump his statistics!


I've used that skript too and found a "Auto-Dump-Feature" :mrgreen: :
it seems it has some problems locking the textfile with the stats (at least on my installation).
The statistics got damaged there twice and therefore now downloads had been possible anymore :roll: .

Holger
Holger
Site Admin
 
Posts: 2582
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: Looking for betatesters for memberpages 3.0

Postby cmb » Tue Jun 12, 2012 11:45 pm

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
Christoph M. Becker---Plugins for CMSimple_XH
cmb
 
Posts: 5481
Joined: Tue Jun 21, 2011 11:04 am
Location: Germany

Previous

Return to Addons and Plugins

Who is online

Users browsing this forum: No registered users and 1 guest