Error logging with WAMP server in PHP

后端 未结 3 1894
鱼传尺愫
鱼传尺愫 2021-01-18 06:02

I have a WAMP 2.2 server running on a Windows 7 box and cannot get PHP error logging working at all.

The file is always blank even after I explicitly trigger USER_ER

3条回答
  •  滥情空心
    2021-01-18 06:30

    Did you try adding these lines to your php file?

    ini_set("display_errors", "1");
    ini_set("log_errors", "1");
    ini_set("error_log", "/wamp64/logs/php_error.log");
    

提交回复
热议问题