Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
包含文件后php函数不工作_Php - Fatal编程技术网

包含文件后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我认为他不需要引用任何一句话。