public static function checkFileName($file)
    {
        return strpos($file, '/') === false && strpos($file, '\\') === false && strpos($file, '..') === false;
    }
public static function checkFileName($file)
    {
        return strpos($file, '/') === false && strpos($file, '\\') === false && strpos($file, '..') === false;
    }
public static function checkFileName ( $ file ) { return strpos ( $ file , '/' ) === false && strpos ( $ file , '\\' ) === false && strpos ( $ file , '..' ) === false ; }
Check that name of file or folder is allowed for file system and no odd symbols in it
@param string $file
@return bool
Check that name of file or folder is allowed for file system and no odd symbols in it