Relative path not working in cron PHP script
The working directory of the script may be different when run from a cron. Additionaly, there was some confusion about PHPs require() and include(), which caused confusion about the working directory really being the problem:
include('foo.php') // searches for foo.php in the same directory as the current scriptinclude('./foo.php') // searches for foo.php in the current working directoryinclude('foo/bar.php') // searches for foo/bar.php, relative to the directory of the current scriptinclude('../bar.php') // searches for bar.php, in the parent directory of the current working directory