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

PHP里面如何用try…catch

WBOY
Release: 2016-06-13 10:09:25
Original
867 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template