变量$ WebSiteDirectory永远不会被取消,我仍然会收到错误消息
变量在"/../Include/ini.inc.php"中设置:
$WebSiteDirectory = "mydir\";
$newLine = "<br />";
$phpNewLine = "\n";
Run Code Online (Sandbox Code Playgroud)
它被塞满的地方是:
echo $WebSiteDirectory; // this line is fine
function theFunction($VAR) {
$dir = $WebSiteDirectory."my other dir"; // this line gets an error
var_dump($dir);
return file_exists($dir);
}
Run Code Online (Sandbox Code Playgroud)
如果成型,不确定是否存在错误.但是,我也会在$WebSiteDirectory以后的程序中重复使用,所以我知道它不会在任何地方被取消.我很确定我是盲目的