The touch() function sets the access and modification time of the specified file.
If successful, the function returns TRUE. If it fails, returns FALSE.
touch(filename,time,atime)
parameter | describe |
---|---|
filename | Required. Specifies the files to be contacted. |
time | Optional. Set time. The default setting is the current system time. |
atime | Optional. Set access time. If the parameter is not set or is set to the same value as the time parameter, the default is the current system time. |
Note: If the specified file does not exist, it will be created.
<?phptouch("test.txt");?>