Easy Tutorial
❮ Func Mysqli Fetch Field Direct Func Ftp Size ❯

PHP touch() Function



Definition and Usage

The touch() function sets the access and modification times of the specified file.

If successful, the function returns TRUE. If it fails, it returns FALSE.

Syntax

Parameter Description
filename Required. Specifies the file to touch.
time Optional. Sets the time. The default is the current system time.
atime Optional. Sets the access time. If not set or set to the same as the time parameter, it defaults to the current system time.

Tips and Notes

Note: If the specified file does not exist, it will be created.


Examples


❮ Func Mysqli Fetch Field Direct Func Ftp Size ❯