Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Warning: Cannot modify header information – headers already sent by

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #255816
    codefewer
    Participant

    Cannot modify header information, headers already sent by, ,

    Why does it happen?

    To understand why headers must be sent before output it’s necessary to look at a typical HTTPresponse. PHP scripts mainly generate HTML content, but also pass a set of HTTP/CGI headers to the webserver:

    Cannot modify header information – headers already sent by

    #255818
    rkieru
    Participant

    Without a sample of the actual code where this error is occurring, it’s impossible to pinpoint the exact issue.

    Generally-speaking though, this means that you are outputting something before the header declaration. A good example of this is a PHP script that has code for setting a cookie after the same script has already used echo to output information.

    #255819
    Shikkediel
    Participant

    I’m thinking he’s just dumping a link to his site and isn’t actually posing a question.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.