我每天晚上运行cron作业,但由于某种原因,它是说,我尝试包括文件inexistant:PHP Cron作业:包括文件不工作?
Warning: require(../includes/common.php): failed to open stream: No such file or directory in /home/fini7463/public_html/cron/journeyNotifications.php on line 2
Fatal error: require(): Failed opening required '../includes/common.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fini7463/public_html/cron/journeyNotifications.php on line 2
下面的代码:
set_include_path('/home/fini7463/public_html/includes/');
require 'common.php';
文件“共同.php'位置如下
public_html => cron => journeyNotifications.php
=> includes => common.php
我甚至设置包含路径(如代码所示),但我仍然收到此错误。问题是什么?
谢谢!
你的错误信息显示你需要('../ include/common.php')'而不是'require('common.php')'。请用实际的错误信息和实际的代码纠正你的问题。 – Sjoerd 2010-06-29 12:48:14