Php 已将自定义脚本添加到Vbulletin计划任务中,但无法工作
我编写了一个php文件来更新页面 这里有一些代码Php 已将自定义脚本添加到Vbulletin计划任务中,但无法工作,php,scheduled-tasks,vbulletin,Php,Scheduled Tasks,Vbulletin,我编写了一个php文件来更新页面 这里有一些代码 <?php require_once('./global.php'); Eventlist(); function Eventlist() { $line = 'some text'; $myFile = "utf8_event.html"; $fh = fopen($myFile, 'w') or die("can't open file"); fwrite($fh, $line);
<?php
require_once('./global.php');
Eventlist();
function Eventlist() {
$line = 'some text';
$myFile = "utf8_event.html";
$fh = fopen($myFile, 'w') or die("can't open file");
fwrite($fh, $line);
fclose($fh);
return true;
}
?>
文件的CHMOD是什么?它必须是可写的才能工作。已将其更改为777。还是一样。我需要将php文件移动到included/cron文件夹吗?现在,在我输入的文件名中。/utf8\u events\u w.php?num=8&encode=utfLet让我们看看您的文件是否被您的作业所触动。添加到您的函数:错误日志(“文件被触动”)。运行cron作业时检查日志。如果没有错误消息,我们就找到了问题。