php 函数在包含文件后不起作用

php function not working after include a file

当我包含 link 时函数不调用或工作,没有包含文件,函数正常工作

$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);

改变 require_once '$AutoRunLink'; 到 require_once$AutoRunLink;