有没有办法可以取得最近一次程序执行的错误信息 !file_exists('./a') && exit('目录./a不存在!') 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用Exceptions,设置一个变量来记录每次的错误信息,last_error_msg()就是显示这个变量的内容 http://www.bulaoge.com/topic.blg?dmn=stone&tid=175831#Content ini_set('track_errors', 1);@mkdir("./a/b/c") or die($php_errormsg); @mkdir("./a/b/c");不能这样建目录 <?php$filename = '/path/to/foo.txt';if (file_exists($filename)) { print "The file $filename exists";} else { print "The file $filename does not exist";}?> TO : ice_berg16(寻梦的稻草人) & xuzuning(唠叨) 对 要的就是这样的效果,不过这里只有错误描述的文本,要是有文件名和行号就更好了。马上揭帖 前辈,帮解决下这个问题 求一个sql语句,进来看看谢谢 帮忙解决一下这个问题来 求助,高难度问题,高并发的SQL插入. PHP项目的配置问题 php static 字符串加数字为什么结果是数字(面试题) ftp_connect()函数的问题! 我是一个新手,大家帮帮我吧 求大神支援, php怎么接收jsp页面传过来的参数? 请教一个正则表达式
@mkdir("./a/b/c") or die($php_errormsg);
不能这样建目录
$filename = '/path/to/foo.txt';if (file_exists($filename)) {
print "The file $filename exists";
} else {
print "The file $filename does not exist";
}
?>
马上揭帖