How does php determine the first file to be executed?-php Tutorial

Source: Internet
Author: User
How does php determine the first execution of a file? How does php determine the first execution of a file (test. php) I want to implement a function similar to the regular clearing of junk posts in a forum: several methods of php scheduled task execution to find a frequently called webpage, add a detection code Forum to regularly clean up new posts, which is basically implemented in this way, Discuz! It is determined that the first executor will execute after. ------ Solution -------- how does php determine the first file to be executed?
How does php determine the first file (test. php) to be executed after)
I want to implement a function similar to the regular clearing of spam posts in a forum:

Several methods for php scheduled task execution
Find a frequently called webpage with a detection code
This is basically how to regularly clean up new posts on the forum, Discuz! It is determined that the first executor will execute after.



------ Solution --------------------
If it is linux, write a cleanup method and put it into the website. in linux, run the crontab command to regularly access this webpage ......
------ Solution --------------------
This function is available if the page triggers Discuz.
If it is automatically triggered by no one, the system's scheduled tasks.
Or refer
Http://topic.csdn.net/u/20100927/10/9b6e5655-617d-44fc-b63c-cd9cbd31ca6e.html? 95672

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.