1
타임 스탬프가 20 분을 넘으면 $ lockfile을 삭제하려고합니다.타임 스탬프가 20 분 이상인 경우 파일을 삭제하십시오.
if (file_exists($lockfile) && time() - filemtime($lockfile) > strtotime("+20 minutes")) {
// If lockfile is alive for more than 20 minutes, unlink it
unlink($lockfile);
}
왜 작동하지 않는지 알 수 없습니다. 아마도 내가 지금 당장 간과 할 수있는 단순한 무언가 일 것입니다. 미리 감사드립니다.