In PHP, i will write (create) the file using file_put_contents($filename, $data); It is ok, but i want to detect the finish event of process. Curre
file_put_contents($filename, $data);
This is a blocking, I/O call, so it finishes when the function call returns. The return value is the number of bytes written (upon success).