PHP Time Timers
Please help the master, PHP how to get time timer, that is, every time to execute the program?
------Solution--------------------
PHP doesn't seem to have it,
Should be in the JS, or under the Linux/unix can be achieved!
------Solution--------------------
Use Sleep () to set the interval time, and then run the program as a command line.
------Solution--------------------
The simplest way to do this is to judge the time in the code, and if so, run it. If it is a static page, it can be started with JavaScript src= ' xxx.php '. If there is a visitor, no visitors will be able to run.
------Solution--------------------
Write a planning task on it, win Linux can be, and then decide when to decide at what time
------Solution--------------------
1. You can use for and then add a sleep
2. Or do a scheduled task in win
------Solution--------------------
First understand the principle of the web and then send the post.
------Solution--------------------
Well, use the sleep function. ~~~~~~~~
------Solution--------------------
Not a real problem, I have encountered such a problem. Or Ajax to do, or system timed tasks. Sleep will make PHP always have a process in, feel uncomfortable
------Solution--------------------
Cronjob cronjob Cronjob
------Solution--------------------
It's best to do it in Windows or Linux.
If it's a rented host, it's not going to work.
------Solution--------------------
Php
Look at Commet technology.
Inside the Loop +sleep ()
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.