Page 1 of 1

Making something happen at a designated time?

Posted: Fri May 02, 2003 9:59 am
by MattSharp
I am making a program that should notify users 24 horus prior to their scheduled time. How could I do this?

Posted: Fri May 02, 2003 10:05 am
by toms100
when you say program you mean php script yes?
of you have access to a cron job you could make a script run every how then loop thru a database full of scheduled times. if it sees one that is scheduled 24 hours or less away it sends a msg to a user then deletes the schedule (so it doesnt loop thru again)

Posted: Fri May 02, 2003 11:54 am
by MattSharp
toms100 wrote:when you say program you mean php script yes?
of you have access to a cron job you could make a script run every how then loop thru a database full of scheduled times. if it sees one that is scheduled 24 hours or less away it sends a msg to a user then deletes the schedule (so it doesnt loop thru again)
Is there anyway to not use a cron job? Or to control cron jobs from within PHP?