I think the main problem could be is that you're not using absolute resolved paths in the include() statement. Usually to insure no problems in include() and require() you use absolute paths so any file with the statement can find what is defined.
include('/home/user/www/includes/file.php');