I dynamically generate html content through a series of php scripts. Once I have this html content created, what is the php code need to write this html content to a seperate file in a specified directory? I have a problem where once I have the filename to write the html content to, I can't fopen($filename) b/c the file is not a newly created file that already exists on my filesystem. Instead its a filename that the user who is using this tool specifies (thats is what they want the file to be called which contains the html content generated). So how can I actually CREATE the file (ie: save it as an actual file). Once I've done that then I figure I can open a filepointer to it and put the html code into it and close the filepointer, and voila! - its created. Any help is greatly appreciated.
Thanks