包含文件后php函数不工作
当我包含链接时,函数未调用或工作,没有包含文件,函数工作正常包含文件后php函数不工作,php,Php,当我包含链接时,函数未调用或工作,没有包含文件,函数工作正常 $AutoRunLink='C:\xampp\htdocs\banking1\index.php'; $sql = "UPDATE automation_schedule SET start_flag='1',done_flag='0',attempt='$AutoAttempt',last_run='$CurrentTime',next_run='$Aut
$AutoRunLink='C:\xampp\htdocs\banking1\index.php';
$sql = "UPDATE automation_schedule SET
start_flag='1',done_flag='0',attempt='$AutoAttempt',last_run='$CurrentTime',next_run='$AutoNextRun',run_server_from='$runServer'
where ID=$AutoID";
$db->query($sql);
require_once '$AutoRunLink';
RestScheduleNextDay($db,$setRunNextDay,$CurrentTime,$AutoID,$runServer);
改变
需要一次“$AutoRunLink”;
到
需要_once$AutoRunLink 那么index.php中有什么呢?它返回的值是否正确?您在
require\u once
上使用了单引号,它不会展开$AutoRunLink
。尝试使用双引号。@标记index.php正在工作perfectly@BrandonHorsley我认为他不需要引用任何一句话。