通过cron作业脚本包含路径错误

时间:2014-11-09 14:28:32

标签: php cron include

我一直从我的cron作业输出中得到一个包含错误。

我得到的输出是:

    ?>): failed to open stream: No such file or directory in /opt/bitnami/apps/wordpress/htdocs/wp-content/themes/yeelloe/cron.php on line 5
PHP Warning:  include(): Failed opening '<?php

//PLEASE do NOT move me around. I get cranky when I get moved around

//get the wp-load in for the wordpress functions

$parse_uri = explode( '/opt/bitnami/apps/wordpress/htdocs/wp-content', $_SERVER['SCRIPT_FILENAME'] );

require_once( $parse_uri[0] . '/opt/bitnami/apps/wordpress/htdocs/wp-load.php' );

//now try calling template function

CheckFunction();

?>' for inclusion (include_path='.:/opt/bitnami/php/lib/php:/opt/bitnami/frameworks/smarty/libs') in /opt/bitnami/apps/wordpress/htdocs/wp-content/themes/yeelloe/cron.php on line 5

我已经尝试将include路径更改为我想要包含的文件,但这仍然给我一个错误。我该如何解决这个问题?

由于

0 个答案:

没有答案