How to detect the finish with file_put_contents() in php?

前端 未结 3 746
独厮守ぢ
独厮守ぢ 2020-12-17 01:08

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

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-17 01:42

    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).

提交回复
热议问题