For php task scheduling problems, please help me ~

Source: Internet
Author: User
Php task scheduling problems. could you help me ~~ Environment: linuxphpapachemysql requirements: according to the specified time (the modification time is obtained temporarily from the client, I don't know), run a piece of php code on my side to complete database operations. After the scheduled task is set, the computer can start and shut down at will. In addition, this plan can be effectively cleared ~~ Ignore_user_abort (); & nbsp; set_tim php plan task problems... please help me ~~
Environment: linux php apache mysql
Requirement: follow the specified time (the modification time is obtained from the client temporarily, I don't know) and run a piece of php code on my side to complete database operations. After the scheduled task is set, the computer can start and shut down at will. In addition, this plan can be effectively cleared ~~

Ignore_user_abort ();
Set_time_limit (0 );
This method is not required. it is not easy to stop and cannot continue to run after restart.


Haha, there are many requirements ~~ Help me ~~ O (distinct _ distinct) O ~~

------ Solution --------------------
Linux scheduled task cront

Use the TOMCAT container to write a JAVA function to call the PHP service in real time.

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.