is_windows example

// @codeCoverageIgnoreEnd         }
    }

    /** * if operating system === windows * * @deprecated 4.3.0 Use `is_windows()` instead */
    public static function isWindows(): bool
    {
        return is_windows();
    }

    /** * Enter a number of empty lines * * @return void */
    public static function newLine(int $num = 1)
    {
        // Do it once or more, write with empty string gives us a new line         for ($i = 0; $i < $num$i++) {
            

    function is_really_writable(string $file): bool
    {
        // If we're on a Unix server we call is_writable         if (is_windows()) {
            return is_writable($file);
        }

        /* For Windows servers and safe_mode "on" installations we'll actually * write a file then read it. Bah... */
        if (is_dir($file)) {
            $file = rtrim($file, '/') . '/' . bin2hex(random_bytes(16));
            if (($fp = @fopen($file, 'ab')) === false) {
                return false;
            }

            
Home | Imprint | This part of the site doesn't use cookies.