限时免费试用:欢迎注册 api.bigmodel.org ,快速体验大模型 API 接入服务。

PHP基础

案例-表格输出文件信息

源码如下:

作者
王明昌
发布时间
最后更新
案例-表格输出文件信息 源码如下:
";
        $str .= "".$filename."";
        $str .= "".getfilesize(filesize($file_path))."";
        $str .= "".(filetype($file_path) == 'dir' ? '目录':'文件') ."";
        $str .= "".(date('Y-m-d H:i:s' , filectime($file_path))) ."";
        $str .= "".(date('Y-m-d H:i:s' , filemtime($file_path))) ."";
        $str .= "".(is_readable($file_path) == 1 ?'YES' : 'NO') ."";
        $str .= "";
    }
    closedir($res);
    return $str;
}

echo "
"; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo dirtab ('../'); echo "
文件名文件大小类型创建时间修改时间是否可读
";
0/500
友善分享您的看法。
反馈邮箱