hello again
i'm coding a website in the form of http://www.megaupload.com
the site it self is not a problem it's going very well.
but here comes the bottle neck the mail needs to be deleted 7 days after creation
and a reminder e-mail needs to be sent after 5 days if it hasn't been uploaded yet.
the problem here is i can't think of a way to do this. because i don't know how often this site
is going to be used so i can't call this function at the start of the page because that can go seriously
wrong.
does anyone have any good idea's on how to tackle this problem. be it functions, code samples
or other ideas.
ps. haven't got any code yet as i said it's really tricky
thank you
E-mail Reminder
Moderator: General Moderators
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
use 'cron' (a unix tool for scheduling tasks) to run a script on your server.
If you don't have shell access, hosts will often give you access to an equivalent tool in the control panel.
Failing that, schedule your own computer to hit a "janitorial" script on the server every so often by loading a specific URL.
Cheers,
Kieran
If you don't have shell access, hosts will often give you access to an equivalent tool in the control panel.
Failing that, schedule your own computer to hit a "janitorial" script on the server every so often by loading a specific URL.
Cheers,
Kieran
thanks for the tip
and it will just refresh or point to another script every 5, 30 or 60 minutes
thanks for the tip and fast response
i will just open a site on the server that cycles every script for this (permanent open webbrowser)schedule your own computer to hit a "janitorial" script on the server every so often by loading a specific URL.
and it will just refresh or point to another script every 5, 30 or 60 minutes
thanks for the tip and fast response
- Kieran Huggins
- DevNet Master
- Posts: 3635
- Joined: Wed Dec 06, 2006 4:14 pm
- Location: Toronto, Canada
- Contact:
Check with your server's control panel first - 'cron' is a MUCH better solution!
I would even suggest you go so far as to submit a support request to have them add the cron job for you if you can't on your own. Any browser-based hack job will be totally unreliable. I only mentioned it as a temporary solution, and I feel ashamed at that
Cheers,
Kieran
I would even suggest you go so far as to submit a support request to have them add the cron job for you if you can't on your own. Any browser-based hack job will be totally unreliable. I only mentioned it as a temporary solution, and I feel ashamed at that
Cheers,
Kieran