Simple MutEx lock implementation based on directory creation
Simple MutEx lock implementation.
Gives you the easy way to check that your script runs as the only instance.
- try to lock, if ok -> run your program, else stop
- unlock when finished the job
Usage as php library
Usage as linux command
mutex lock some_action
mutex unlock some_action