Example #1
0
 private static function createLockFile()
 {
     $LOCK_FILE_NAME = __DIR__ . "/../../" . Config::get("log");
     if (!file_exists($LOCK_FILE_NAME)) {
         fclose(fopen($LOCK_FILE_NAME, 'w'));
     }
     Atomic::$handle = fopen($LOCK_FILE_NAME, 'r');
 }