Will this flock function work?

Post your Click counter digestion problems here
Post Reply
dstewart
Posts: 2
Joined: Sat Oct 06, 2007 2:55 am

Will this flock function work?

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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 :wink: ) and after that I will have more time to work on the scripts. Quite a few need an update.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
dstewart
Posts: 2
Joined: Sat Oct 06, 2007 2:55 am

Post 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!
Post Reply