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.
Currently, the page is showing loading status.
This is currently the way i can know it is finish or not.
I want to detect with the code.
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).