PHP include不工作(第三条语句)


PHP include not working (3rd statement)

我有一些代码,我不知道为什么第三个包含语句不工作。我试过改变顺序,但它仍然是第三个从来没有工作。

$filename = $includes_url . "php/LeagueFunctions2010.php";
if(file_exists($filename)) {
    echo $filename . " found <br />";
    include_once($filename);
    echo $filename . ' included <br />';
} else {
    echo "Filename: " . $filename . "<br />";
    exit ("Missing file.");
}
$filename = $includes_url . "php/GetUserInfo.php";
if(file_exists($filename)) {
    echo $filename . " found <br />";
    include_once($filename);
    echo $filename . ' included <br />';
} else {
    exit ("Missing file. Filename:" . $filename);
}
$filename = $includes_url . "php/league_functions.php";
if(file_exists($filename)) {
    echo $filename . " found <br />";
    include_once($filename);
    echo $filename . ' included <br />';
} else {
    exit ("Missing file. Filename:" . $filename);
}

结果是:

/home1/chasiv/public_html/联盟/_includes/php/LeagueFunctions2010.php包括/home1 chasiv/public_html/联盟/_includes/php/GetUserInfo.php包括

我已经在很多页面上使用了多个include,但由于某些原因,这是失败的

找到问题。在league_functions &中有重复的函数名。LeagueFunctions2010.php。这就是改变顺序无关紧要的原因。谢谢大家的建议。