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,346
    Likes Received:
    382
    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,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    use output buffering, call the function ob_start and the beginning of your script.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice