Now: Tutorial for Web and Software Design > PHP > QA > PHP Content
> PHPFAQ - Why do i get the error Cannot add header information ? [Bookmark it]
PHPFAQ - Why do i get the error Cannot add header information ?


Question :

Why do i get the error "Cannot add header information" ?

Answer :From the manual page:

Remember that header() must be called before any actual output is
sent, either by normal HTML tags blank lines in a file, or from
PHP. It is a very common error to read code with include(), or
require(), functions, or another file access function, and have spaces
or empty lines that are output before header() is called. The same
problem exists when using a single PHP/HTML file.

If you need to use header to redirect a user after you sent output, standard html has a meta refresh tag, read more about meta tags and html here.

[Bookmark][Print] [Close][To Top]
  • Prev Article-PHP:

  • Next Article-PHP:
  • Related Materias
    PHPFAQ - How google is you
    PHPFAQ - Are there any web
    PHPFAQ - How can I accept 
    PHPFAQ - How can I finance
    PHPFAQ - Where can I get P
    PHPFAQ - Where can I host 
    PHPFAQ - Where can I find 
    PHPFAQ - I am trying to cr
    PHPFAQ - Is there a librar
    PHPFAQ - How can I manage 
    Topics
    Photoshop Tutorial
     

    Special Effect

      3D Effect
      Photoshop Articles
    Programming Tutorial
     

    C/C++ Tutorial

      Visual Basic
      C# Tutorial
    Database Tutorial
     

    MySQL Tutorial

      MS SQL Tutorial
      Oracle Tutorial
    Graphic Design Tutorial
     

    Coreldraw Tutorial

      Illustrator Tutorial
      3D Graphics Articles
    Webmaster Articles
     

    Domain Service

      Web Hosting
      Site Promotion
    Java Tutorial&Articles
     

    Java Servlets

      JavaEE Tutorial
     

    JavaBeans Tutorial

    XML Tutorial&Articles
     

    XML Style Tutorial

      AJAX Tutorial
      XML Mobile
    Flash Tutorial&Articles
     

    Flash Video

      Action Script
      Flash Articles
    OS Tutorial&Articles
     

    Linux Tutorial

      Symbian Tutorial
      MacOS Tutorial