file_exist()不工作,并阻止所有代码在其下面执行 [关闭] 。

问题描述 投票:0回答:1

就像标题说的那样,我很困惑,我过去多次使用这个功能都很成功,但现在突然就不行了。我过去用这个功能很多次都很成功,但现在突然就完全不行了。上面的所有内容都会正常显示,下面的所有内容都会消失。给定的文件路径是正确的,因为 需要 同样的文件完全可以使用。

//this works
require $_SERVER['DOCUMENT_ROOT']."/custom/phsh/includes/login.php";

//this doesn't return anything it just stops the code right here
echo file_exist($_SERVER['DOCUMENT_ROOT']."/custom/phsh/includes/login.php");

php syntax-error file-exists
1个回答
0
投票

这是一个该死的拼写错误,我写了file_exist();但它应该是file_exists()。

© www.soinside.com 2019 - 2024. All rights reserved.