Php Error Reporting even when display error is on

后端 未结 1 1832
自闭症患者
自闭症患者 2020-12-21 23:58

I\'m getting a problem with my php scripts. No error reporting is being made in spite that in my php.ini that i\'ve set display error everywhere

; display_e         


        
相关标签:
1条回答
  • 2020-12-22 00:05

    You have to use these:

    display_errors = On
    display_startup_errors = On
    error_reporting = E_ALL 
    

    With no ; at the start of the line. That is a comment and just disables the directive.

    Edit: To use runtime configuration, just add these two lines at the beginning of your php script:

    error_reporting(E_ALL);
    ini_set("display_errors", 1);
    
    0 讨论(0)
提交回复
热议问题