header() error not shown in php

后端 未结 3 1732
伪装坚强ぢ
伪装坚强ぢ 2021-01-27 12:20

I wrote a PHP program, I use session_start() and header() functions, I know I should use this functions before I sending anything to client. it\'s ok,

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-27 12:59

    I found the problem, I don't use any FrameWork.

    the problem was error_reporting('E_ALL');

    I wrote this code on first of my program, and so PHP didn't return any errors ! I deleted this line and I get the errors !

    This is kidding because this line said to PHP to show ALL errors ! I don't know why PHP don't show any errors.

提交回复
热议问题