Server cannot set status after HTTP headers have been sent IIS7.5

后端 未结 10 888
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 12:32

Sometimes I get exception in my production environment:

  • Process information
    • Process ID: 3832
    • Pr
10条回答
  •  有刺的猬
    2020-11-27 12:44

    I remember the part from this exception : "Cannot modify header information - headers already sent by" occurring in PHP. It occurred when the headers were already sent in the redirection phase and any other output was generated e.g.:

    echo "hello"; header("Location:http://stackoverflow.com");

    Pardon me and do correct me if I am wrong but I am still learning MS Technologies and I was trying to help.

提交回复
热议问题