php - file_exist() 不工作并阻止所有代码在其下执行
问题描述
就像标题说的,我被难住了。我过去多次成功使用此功能,但现在突然之间它根本不起作用。它上面的一切都将正常显示,它下面的一切都消失了。给定的文件路径是正确的,因为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();
推荐阅读
- c# - 为什么 EF Core 2.2.6 不进行垃圾收集?
- python - 如何在 AWS Lambda 上使用 TensorFlow Lite
- excel - URLDownloadToFileW Sharepoint 下载 URL 与 VBA 中的 unicode 字符
- angular - 进度条 - 用点击填充栏
- python - Keras:ValueError:检查目标时出错:预期密集具有形状(10,)但得到形状为(400,)的数组
- rest - OpenShift RestAPI 等效于 oc 标签
- ruby - 在 DateTime 字段上查询时间 (MongoDB)
- yaml - yaml 文件的语法 - “<<:”是什么意思?
- php - 如何使或未定义?
- flutter - 如何获取其他流发出 id 的 Firestore 文档快照流?