函数:touch()


touch

配置最后修改时间。

语法: int touch(string filename, int [time]);

返回值: 整数

函数种类: 文件存取

内容说明

本函数可用来配置最后修改时间。若有指定参数 time,则依指定的时间;若无指定时间,则为服务器的时间。和 UNIX 的同名指令一样,若文件不存在,则会建立 filename 文件。成功则返回 true 值,其它失败时则返回 false。



[ 上一页 PHP 手册 下一页 ]

PHP 首页 | PHP 导读 | PHP 函数库 | PHP 函数索引 | PHP 范例程序