Possible Duplicate:
PHP create a file without fopen
I want to create a file without fopen function because it opens the file. Is it possible or I have no choice but fopen?
I’m writing a Checker Class that will make sure that some files exist and has write permission. If one file does not exist, I just want it to be created. This class won’t manipulate any file content.
Use the
touchfunction. To quote from the documentation: