Page 1 of 1
Will this flock function work?
Posted: Sat Oct 06, 2007 3:00 am
by dstewart
Seems to me placing...
flock( $fp, LOCK_EX );
fputs...
flock( $fp, LOCK_UN );
...before and after your fputs functions will avoid some of these corruption issues. I haven't tested it however.
Posted: Sat Oct 06, 2007 9:04 am
by Klemen
You're right, and as mentioned before this will be added... hopefully soon. Two more weeks, after that I'll officially have my diploma, then I'm drunk for a week (joke

) and after that I will have more time to work on the scripts. Quite a few need an update.
Posted: Sat Oct 06, 2007 11:50 am
by dstewart
Let me know if you'd like some assistance creating a MySQL version. It would be fairly easy to convert this existing codebase one that uses a "real db"
Good luck on the last two weeks! I remember that time of my life...lots of stress but lots of fun at the same time!