php处理文件属性函数,文件属性 · PHP文件系统操作常用函数整理 · 看云

file_exists — 检查文件或目录是否存在

bool file_exists ( string $filename )

fileatime — 取得文件的上次访问时间

int fileatime ( string $filename )

filemtime — 取得文件修改时间

int filemtime ( string $filename )

filesize — 取得文件大小

int filesize ( string $filename )

filetype — 取得文件类型

string filetype ( string $filename )

fstat — 通过已打开的文件指针取得文件信息

array fstat ( resource $handle )

is_executable — 判断给定文件名是否可执行

bool is_executable ( string $filename )

is_file — 判断给定文件名是否为一个正常的文件

bool is_file ( string $filename )

is_readable — 判断给定文件名是否可读

bool is_readable ( string $filename )

is_uploaded_file — 判断文件是否是通过 HTTP POST 上传的

bool is_uploaded_file ( string $filename )

is_writable — 判断给定的文件名是否可写

bool is_writable ( string $filename )

is_writeable — is_writable 的别名

pathinfo — 返回文件路径的信息

mixed pathinfo ( string $path [, int $options = PATHINFO_DIRNAME | PATHINFO_BASENAME | PATHINFO_EXTENSION | PATHINFO_FILENAME ] )

realpath — 返回规范化的绝对路径名

string realpath ( string $path )

rename — 重命名一个文件或目录

bool rename ( string $oldname , string $newname [, resource $context ] )

stat — 给出文件的信息

array stat ( string $filename )

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值