我正在尝试通过 cron 作业运行一个 php 文件,当我手动运行它时该文件工作正常,但是当我在 cron 作业中运行它时,我收到此错误:
Warning: include(classes/EmailAddressValidator.php): failed to open stream: No such file or directory in /var/www/onecent_dev/classes/MiscFunctions.php on line 3
Warning: include(): Failed opening 'classes/EmailAddressValidator.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/onecent_dev/classes/MiscFunctions.php on line 3
MiscFunctions.php 和 EmailAddressValidator.php 都是现有文件并且位于正确的位置,有什么用?
谢谢