1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot modify header information - headers already sent

Discussion in 'PHP' started by webwss, May 19, 2009.

  1. webwss

    webwss New Member

    Joined:
    May 19, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Warning: Cannot modify header information - headers already sent

    Warning: Cannot modify header information - headers already sent by (output started at C:\webserver\Apache2\htdocs\register.php:1) in C:\webserver\Apache2\htdocs\register.php on line 68
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    You have some output like echo / print before the final output you are doing again which means you are sending the headers couple of times
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    use output buffering, call the function ob_start and the beginning of your script.
     

Share This Page