Enable errors in browser when parsing PHP-files

前端 未结 4 2145
面向向阳花
面向向阳花 2021-02-19 01:38

I recently changed to a MacBook and now use the MAMP-stack for development locally.

In my earlier development environment I always could see informative error-reports wh

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-19 02:26

    reporting level to E_ALL and display errors on Include the following code at the top of every php file on in an include or require such as your config.php

    error_reporting(E_ALL);
    ini_set('display_errors', 'on');
    

提交回复
热议问题