running a php task every 24 hours

前端 未结 4 1134
孤独总比滥情好
孤独总比滥情好 2021-01-05 07:22

I have some functions that use curl to pull information off a couple of sites and insert them into my database. I was just wondering what is the best way to go about executi

4条回答
  •  既然无缘
    2021-01-05 08:11

    Adding 0 0 * * * php /path/to/your/cronjob.php to your crontab should accomplish this.

提交回复
热议问题