PHP开启页面报错的代码

PHP开启页面报错的方法很简单,在<?php内加入下面的代码就可以了:

<?php
ini_set("display_errors", "On");
error_reporting(E_ALL | E_STRICT);
?>

插入在页面顶部就可以了。