I'm on GoDaddy shared hosting. In my cron job PHP script, I use require() to include some other files. The cron job PHP script works fine when I use it manually (via entering its url to the address bar), but when the cron job is performed, the cron script works fine, except it can't find the required files.
I have the following cron command:
/usr/local/bin/php -q /home/username/public_html/domainname/cron/script.php >/dev/null 2>&1
I read here that one option is to use full paths in require(). Another option is to modify the cron command, which is what I want to learn. My question is how to modify the above cron command so that my require() in the cron script will work (without using full paths).
Thanks.