title: How to write to file in large php application(multiple questions)
body: <p>What is the best way to write to files in a large php application. Lets say there are lots of writes needed per second. How is the best way to go about this.</p>
  
  <p>Could I just open the file and append the data. Or should i open, lock, write and unlock. </p>
  
  <p>What will happen of the file is worked on and other data needs to be written. Will this activity be lost, or will this be saved. and if this will be saved will is halt the application.</p>
  
  <p>If you have been, thank you for reading!</p>