我花了幾天的時間還是無法弄清楚這一點。 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文件是