kosaks Posted August 24, 2011 Share Posted August 24, 2011 Hello to everyone Does anyone knows how to schedule php script? I have a script that saves the scheduled task on MYSQL database. What i want is that when the scheduled task reach its due date, the php script will initiate automatically without any user interaction. I've tried using Windows Scheduler but it will not solve my problem because windows scheduler only runs when it reaches its scheduled time. Only then the script will initiate. Please help me guys. I will really appreciate all the help i cant get. thanks in advance Link to comment https://forums.phpfreaks.com/topic/245575-php-scheduling/ Share on other sites More sharing options...
trq Posted August 24, 2011 Share Posted August 24, 2011 You need to use the OS's schedular in order to schedule a script. The problem is your logic. You need to make your script check the database to see if the expiry date has passed, if so, do whatever action is needed. otherwise, do nothing until the next scheduled check. Link to comment https://forums.phpfreaks.com/topic/245575-php-scheduling/#findComment-1261317 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.