如下代码 用php xxx.php 执行的时候,没有代码异常提示 <?php //文件找不到 $file=fopen("welcome.txt","r"); //除数不能为0 $result = 1 / 0; 修改php.ini 修改为如下内容 display_errors=On 在运行,有提示了