php /full/path/to/index.php cron/index fails as the app relies on being executed in the "public dir"
Even if not strictly necessary (a cd could solve) I suggest to use only fully qualified paths in the scripts in order to have a more portable behavior ..
just define a BASE_DIR (using __DIR__) constant and refer to it every time including or requiring files
php /full/path/to/index.php cron/index
fails as the app relies on being executed in the "public dir"Even if not strictly necessary (a
cd
could solve) I suggest to use only fully qualified paths in the scripts in order to have a more portable behavior ..just define a
BASE_DIR
(using__DIR__
) constant and refer to it every time including or requiring filesmy 2 cents