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.
Will this flock function work?
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.

Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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