Search
Left Quote    Choose a job you love, and you will never have to work a day in your life.
- Confucius    
Right Quote
 
[login] | [Register]
Forum Index » PHP and mySQL » Viewing Topic and Replies
Post Reply


        Viewing Topic: Comment script: Warning: Cannot modify header information -
  This user is online  Guest
  Subject: "Comment script: Warning: Cannot mod..." Posted: @ 9:46 am on Dec 04 2005   
Unregistered
After hitting "Submit&qu ot; my page refreshes and the comment-section of my page shows the old comments but not the lates addition I just sent.

Instead, it says:

Warning: Cannot modify header information - headers already sent

If I surf to the page again (not refresh, but through my menu-system) the page shows ok, including the latest addition. Any ideas?


    Viewed: 6,797 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Comment script: Warning: Cannot..." Posted: @ 4:34 pm on Dec 04 2005    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

Yup, its an ob_start(); deal. make sure ob_start(); is the very first line of code on your page, even before <html>. so start it out like this:

Code:


<? ob_start(); ?>
<html>
<head>



understand?




-bs0d | AllSyntax.com

    Viewed: 6,790 Times | Reply to This | To top
  This user is online  Guest
  Subject: "re: Comment script: Warning: Cannot..." Posted: @ 6:53 pm on Dec 04 2005    
Unregistered

  bs0d said...

< i> Yup, its an ob_start(); deal. make sure ob_start(); is the very first line of code on your page, even before <html>. so start it out like this:

Code:

<? ob_start(); ?>
<html>
<head>



understand?


100%. It works now. You're the best :-) Thanks!



    Viewed: 6,785 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank