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 only chance I got "require_once" to work with cron and apache at the same time was
require_once(dirname(__FILE__) . '/../setup.php');