Announcement

Collapse
No announcement yet.

question about headers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • question about headers

    anyway to see when and what headers are sent?

    cuzz that header already sent msg really sux.

    how can I control the headers then?

  • #2
    headers_sent() will return true if the headers are sent.

    I think I read somewhere that you can buffer the output so you can print headers from anywhere in you script. But I can't seem to find where I read that. This is what I have found...
    http://php.net/manual/en/function.ob-start.php
    http://www.phpdev.com/articles.php?t...ew&articleID=1

    Comment


    • #3
      Thnx! but what I realy want to know...when are headers usualy sent? As soon as I click submit on a form? as soon as a script loads? When a script ends?

      Comment


      • #4
        They are called headers because they are at the begining...
        ....otherwise, you'd be asking about footers

        I don't really know much more than that. Sorry.

        Comment


        • #5
          theyre the first thing that is sent as output
          so its directly previous to the first echo or print or error

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          X