Execute PHP via cron - No Input file specified

后端 未结 6 1155
醉梦人生
醉梦人生 2021-01-14 02:13

I\'m using the following command to execute a PHP file via cron

php -q /home/seilings/public_html/dvd/cron/mailer.php

The problem is that I

6条回答
  •  爱一瞬间的悲伤
    2021-01-14 02:56

    If you're feeling lazy and do not feel like making sure all those env variables work you might want to try running with cron using:

    lynx -dump http://url.to.your.script > /dev/null

提交回复
热议问题