It seems, if a PHP script contains something like:
include('../another-file.php');
It will work properly if opened in browser or CLI, but fail in cron with a message similar to:
PHP Warning:
include(../another-file.php): failed to open stream: No such file or directory in /home/account/public_html/cron-test.php on line 3
Scripts can be modified to use absolute paths instead of relative paths, but that's not the best solution for everyone, especially if lots of files are executed using cron jobs.
Is there a fix for this at the control panel (CWP) level?