Last active
January 17, 2017 18:04
-
-
Save profitcore/8a4ef9738f6748d23e8f53a945235a25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file='/tmp/parser_status.lock'; | |
if(!flock($lock_file = fopen($file, 'w'), LOCK_EX | LOCK_NB)) | |
die("Already runninng\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment