file_exist() 不工作并停止在其下执行所有代码

file_exist() not working and stopping all code from being executed underneath it

如题所说,难倒我了。我过去曾多次成功使用此功能,但现在突然间它根本无法使用。上面的一切都会正常显示,下面的一切都会消失。给定的文件路径是正确的,因为 require 对同一文件工作得很好。

//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");

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