当前位置:Gxlcms > PHP教程 > die()函数如何不报错

die()函数如何不报错

时间:2021-07-01 10:21:17 帮助过:30人阅读

die()函数怎么不报错
if(!file_exists("welcome.txt"))
{
die("file not found");
}
else
{
$file = fopen("welcome.txt","r");
}

理论上文件不存在,浏览器应该输出这样的错误消息:file not found
可为什么我的浏览器什么也没有输出?

------解决方案--------------------
探讨

为什么不存在也没有报错?

人气教程排行