title: How can multiple users writing to a file cause corruption?
body: <p>I have made a chatroom that uses PHP to write to a text file, then the text file is read to the user. I have been told many times that if multiple users write to the same file on my server at the same time, the file could be corrupted. </p>
  
  <p>How is this caused and how does this happen?</p>