It wrote in the file. BUT, when I removed the fclose (commented it out) - nothing was written. It seems you're right - you've missed an fclose(). Not sure how you could go about fixing this.
I don't think file permission, directory, or harddrive error could cause this problem, because I can fix it temporarily by restarting the server. It'll last another week or so before it happens again. I will test this fclose thing tonight.
I don't think file permission, directory, or harddrive error could cause this problem, because I can fix it temporarily by restarting the server. It'll last another week or so before it happens again. I will test this fclose thing tonight.
Those are ALL valid reasons why file operations may fail. Code doesn't work one minute and not seem to the other, either there was a change in code or something external is affecting what it is supposed to do.