public static function isFile($path)
    {
        if (is_file($path)) {
            if (strstr(PHP_OS, 'WIN')) {
                if (basename(realpath($path)) != basename($path)) {
                    return false;
                }
            }

            return true;
        }

        return false;
    }
public static function isFile($path)
    {
        if (is_file($path)) {
            if (strstr(PHP_OS, 'WIN')) {
                if (basename(realpath($path)) != basename($path)) {
                    return false;
                }
            }

            return true;
        }

        return false;
    }
public static function isFile ( $ path ) { if ( is_file ( $ path ) ) { if ( strstr ( PHP_OS , 'WIN' ) ) { if ( basename ( realpath ( $ path ) ) != basename ( $ path ) ) { return false ; } } return true ; } return false ; }
Detect whether file is existed

@param  string $path
@return boolean
Detect whether file is existed