我花了几天的时间还是无法弄清楚这一点。 public_html下php路径,cron和cpanel
我有以下文件结构:
cron_jobs/file.php contains - > include('../base/basefile.php')
base/basefile.php contains - > include('baseSubFile.php')
当我运行
/pathtophp/php -f ~/public_html/cron_jobs/file.php
它工作正常,但是当我复制相同的命令到的cPanel的cron,我得到错误说
'basesubfile.php' can't be found
请帮忙。为你的PHP文件是