Execute PHP via cron - No Input file specified

后端 未结 6 1152
醉梦人生
醉梦人生 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 03:11

    When you run the php with cron it is very likely that then environment variable 'HTTP_HOST' will not be set (or null) and when null is given to strstr function, strstr returns false that is why the mode is set to "local".

提交回复
热议问题