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.