Home > Backend Development > PHP Tutorial > PHP里面如何用try…catch

PHP里面如何用try…catch

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 13:41:40
Original
930 people have browsed it

PHP里面怎么用try……catch
我的程序不知道哪里的路径设置有问题,访问的时候直接就是500 Internal Server Error,用catch Exception也没用,请问php里面有没有像java那样有顶层类,想Throwable的那种。
如果没有的话,这种500的错误怎么能打印出详细的错误信息呢?

------解决方案--------------------
php.ini中
display_errors=ON

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template