Running a PHP script completely on server side

后端 未结 5 1908
眼角桃花
眼角桃花 2021-02-10 21:12

I\'m having a problem where putty gets regularly disconnected. So, when I run a PHP script from the terminal, it always gets interrupted. The script is supposed to run several h

5条回答
  •  忘掉有多难
    2021-02-10 22:03

    You can create a cron job to start the php script periodically based on a list of time tasks. More info. You could also start the task in the background from the console. i.e. php-cgi script.php& this would make the script a background task

提交回复
热议问题