You would use a function like fwrite() to create the file, basically. To delete it after 30 days, however, you'd probably need to store a timestamp in a database somewhere, referencing the file's name. You'd also need to, I think, setup a crontab to run the script every day to delete older pages...that's something you'd need to talk to your host about.
Bookmarks