If a PHP script is run as a cron script, the includes often fail if relative paths are used. For example, if you have
require_once(\'foo.php\');
The DIR works although it will not work on my localhost as it has a different path than my live site server. I used this to fix it.
if(__DIR__ != '/home/absolute/path/to/current/directory'){ // path for your live server
require_once '/relative/path/to/file';
}else{
require_once '/absolute/path/to/file';
}