I need to do something like let the program code wakeup and perform task automatically every hour. However, I'm not sure whether the function that I want has similar task as wakeup() in java. Is there any funtion for the purpose above?
If you're running this on your own *nix box, use CRON. Use Google to get more info on it. As for Windows, I don't really know. You may be able to rig something up using Task Scheduler.
Unfortunately, my php is on windows. If anyone can give me some suggestion , please.
Use the windows scheduler.
I found php function sleep() but not sure whether I can use it with this purpose. Can someone clarify?