SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    HI silver trophy Silverado4x4's Avatar
    Join Date
    Jan 2001
    Location
    USA
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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?

  2. #2
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    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.

  3. #3
    HI silver trophy Silverado4x4's Avatar
    Join Date
    Jan 2001
    Location
    USA
    Posts
    953
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think I've found a script to do this. I'm just modifying it. It's a greeting cards script.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •