How to create cron job using PHP?

前端 未结 12 1532
一整个雨季
一整个雨季 2020-11-21 05:50

I\'m new to using cron job. I don\'t even know how to write it. I have tried to search from internet, but I still don\'t understand it well. I want to create a cron job that

12条回答
  •  旧巷少年郎
    2020-11-21 06:20

    Create a cronjob like this to work on every minute

    *       *       *       *       *       /usr/bin/php path/to/cron.php &> /dev/null
    

提交回复
热议问题