当前位置:网站首页>PHP - whether the setting error displays -php xxx When PHP executes, there is no code exception prompt

PHP - whether the setting error displays -php xxx When PHP executes, there is no code exception prompt

2022-07-06 11:22:00 billycoder

The following code

use php xxx.php When it comes to execution , No code exception prompt

<?php


// The file could not be found 
$file=fopen("welcome.txt","r");

// The divisor cannot be zero 0
$result =  1 / 0;

modify php.ini

Change to the following

display_errors=On

Running , There's a hint

 Insert picture description here

原网站

版权声明
本文为[billycoder]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131627251829.html