I don't think it is a windows server so the task scheduler is out of the question... As for a program that i know that executes everyday, i'm not sure that there is one.
I have considered writing a java application that has a thread that will check once a day and run the relevant php script if returns a success, but then this will have to be restarted everytime the server is restarted....
any more ideas??? Is there a linux version of the task scheduler? i just found something called "crontab", anyone know how would i go about using that?
Main Topics
Browse All Topics





by: cxrPosted on 2009-01-13 at 09:01:55ID: 23364795
You need a (PHP) script to connect to the database, collect all relevant records, and send emails. Then you need a way to execute this script once every day.
The script could be something like below. You can use windows task scheduler to make this script run once per day, or you can include it in some other php-based application that you know executes every day. In that case you need to store the timestamp for each execution, and make sure it only executes once per day.
Select allOpen in new window