Creating and Deleting Files
If a file does not yet exist, you can create it with the touch() function. Given a string representing a file path, touch() attempts to create an empty file of that name. If the file already exists, its contents won't be disturbed, but the modification date will be updated to reflect the time at which the function executed.
All functions that create, delete, read, write, and modify files on Unix systems require the correct file or directory permissions to be set.