PHP - Is file being written to?

TOR

New Member
My mailserver write to a file every 1 minute, this is fine and I'm happy for it to do that.However on my WebServer, I want to check if that file is currently being written to and if it isn't show the user a download link.Is there any way I can do this..run a loop that will keep looking until the file is no longer being written to then, show a download link to the file ?I've read on \[code\]flock()\[/code\] but I don't think this will help as another process / os is actually creating the file !Thanks :)
 
Top