Making something happen at a designated time?
Posted: Fri May 02, 2003 9:59 am
I am making a program that should notify users 24 horus prior to their scheduled time. How could I do this?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Is there anyway to not use a cron job? Or to control cron jobs from within PHP?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)