Can PHP scripts continue to run even if the user closed the browser?

后端 未结 7 1515
日久生厌
日久生厌 2020-12-09 15:46

For example, there is a very simple PHP script which updates some tables on database, but this process takes a long time (maybe 10 minutes). Therefore, I want this script to

7条回答
  •  感情败类
    2020-12-09 16:31

    You can make the PHP script run every 20 minutes using a crontab file which contains the time and what command to run in this case it would be the php script.

提交回复
热议问题