file_touch (string file[, integer time]) ⇒ boolean
'Touches' a file, setting its modification time to the current time. Optionally takes a time parameter to set it to.
First available: Version 1.9.13
Notes
This function works identically to the Linux/Unix-like operating system touch feature that touches a file to set the time to a specified time. With the ZPE implementation, it gets the current time and sets the file modification time to that, thus making it cross compatible with Windows operating systems.
Comments