Results 1 to 3 of 3
Thread: How would I do this?
Sep 22, 2001, 15:40 #1
How would I do this?
I would like to make a script where a user types in a few words in a form, then it automatically creates an HTML page using that information.
It should give the file name to the user who filled out the form.
Also, it would need to be automatically deleted after 30 days...
How would I go about doing this?
Sep 22, 2001, 19:22 #2
- Join Date
- Aug 1999
- Pittsburgh, PA, USA
- 0 Post(s)
- 0 Thread(s)
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.
Sep 22, 2001, 19:26 #3
I think I've found a script to do this. I'm just modifying it. It's a greeting cards script.