Application
Table of Contents
Classes
- Lock
- Lock class for PHP scripts Create a lock file in "<basePath>/processName.lock", containing the script PID, and the maxLife (in minutes) for the process. When script is called it search for the lock file and: - if not exists, it is created - if exists but is expired (creationTime filectime + $this->maxLifeInMin*60 > NOW), kill the previuos PID, destroy and recreate lock - if exists and is not expired, simply dont acquire the lock