simultaneous logging in php -


I have a question I have a script that has been removed by the GET trigger I use script and append script I am trying to log the execution, but what I am doing is that if any instance is called, while another instance is still writing the file, it will disrupt the fillet and put its data Will go Is the file being written, if I can queue the script to wait? But I do not want to lose any log data.

Thanks in advance!

Using a herd is really a bad idea - how long do you lock a file It should be within the scope of working that your script execution has been suspended - all kinds of atheisms do not have the necessary file locking symmetric for concurrent file access in PHP.

Better solutions are:

  1. Write log entries in stderr - they should be shown
  2. Use
  3. Use and confirm that your error reporting is setup to log in to a file
  4. Write the log entries in one DBMS

Comments