0
는 여러 사람이 명령과 동시에 같은 파일에 쓸 가정file_put_contents를 잠글 수없는 경우 어떻게됩니까?
file_put_contents('file.txt', 'This is an example', LOCK_EX);
이 기능 file_put_contents
이 너무 오래 기다려야했기 때문에 한 사람이 파일에 기록하지 못할 수도 있다는 가능할 것이다 잠긴 파일 은요? 함수는 예외를 발생, 또는 당신은이 같은 오류로 끝날 것 :
"Fatal error: Maximum execution time of .. seconds exceeded"
https : // stackoverflo를 수행합니까? w.com/questions/18833448/php-flock-behaviour-when-file-is-locked-by-one-process help? –