Cannot get PHP cron script to run

前端 未结 4 685
轮回少年
轮回少年 2020-12-06 22:52

I have a PHP script that I need to run every minute. I have made sure that the script works from the command line, and I\'m using absolute paths to avoid any environment iss

4条回答
  •  不思量自难忘°
    2020-12-06 23:06

    This might be considered "bad practice" but it works for me.

    Run it with curl

    * * * * * curl -s http://www.domain.com/services/myservice.php
    

提交回复
热议问题