Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (file_exists('file.lock')) {
- usleep(100000); // sleep 100ms
- }
- touch('file.lock');
- // Execute processes here
- unlink('file.lock');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement