Topic: Programatically scheduling a php program to run at certain times
Hi,
I'm not sure how to go on this, but it seems like something that must have been dealt with a lot...
I'm under Windows 98. I have a list of times (on the order of 20 a week) in a table (which may be updated at any point) at which times I must go out and grab a specific web page and parse it (I have a two minute window). The grabbing and parsing parts are fine, but I do not see how to schedule automatically a php program at an arbitrary time.
What I thought I could do is to use the Windows Task Scheduler to cause a TimeCheck.php program to run once an hour which would examine the times in my table and if there is a new one, it would schedule the PageGrab.php program for the appropriate time. (If a time was to be added that is less than one hour from now, the TimeCheck.php program would have to be run ASAP, independent of the scheduled hourly run). But how do I schedule PageGrab.php to run at a specific time programatically?
A nice solution would be if Task Scheduler was a .COM object so I could manipulate it like Excel, Word, etc. Or maybe someone knows a nice DOS TSR scheduler that I can use.
Thanks for any tips,
Csaba Gabor