Example #1
0
 public static function createFile($file_path, $overwrite = FALSE)
 {
     $file = new self($file_path);
     if ($file->isExist() && !$overwrite) {
         return FALSE;
     }
     $file->openHandle(self::FILE_WRITE);
     $file->closeHandle();
     return $file;
 }