touch
Set file access and modification time
touch()
function sets the access and modification time of the specified file.
<?php touch ( "test.txt" ) ; ?>
touch ( filename , time , atime )
parameter | describe |
---|---|
filename | Required. Specify the documents to be contacted. |
time | Optional. Set the time. The default is the current system time. |
atime | Optional. Set the access time. The default is the current system time. |
Try to set the access and modification time of the file given by filename to the specified time. If no optional parameter time is set, the current system time is used. If the third parameter atime is given, the access time of the specified file will be set to atime.
Return true if successful, and false if failed.