Stack Overflow 上还有其他一些关于此的问题,我确实理解这一点,但没有一个问题让我知道为什么我会得到"Could not open input file"
.
我已经设置好了,所以每次运行 crons 时我都会收到一封电子邮件(我使用 cPanal 来设置 crons),但我得到的只是:
Could not open input file: /home/methodjs/classified/emailNotifications.php
因为是我第一次使用 crons 作业,所以我不知道这意味着什么或如何修复它。
我的命令行是:
/usr/local/bin/php $HOME/classified/emailNotifications.php
难道我做错了什么?谢谢你的帮助。顺便说一句,我确信那是通向 PHP 的正确途径,因为这就是我从我的主机那里得到的。