Page 1 of 1

Warning Message

Posted: Fri Oct 06, 2006 10:21 am
by Raidersguy
Script URL:
Version of script:1.43
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hi I'm using the latest guestbook and it’s brilliant, but if I upload the gbook.php to the server (If I modify it, no fault with the script) I get 5 lines above the guestbook like:
Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux188
To remedy this I rename the directory of the guest book (to anything) and upload all the files again, I then simply rename the director back and all works fine.
Any suggestions what am I doing wrong I wonder?

Posted: Fri Oct 06, 2006 3:15 pm
by Henrie
Hello Raidersguy,

I can't give you an exact answer but this error is usually gotten when the header.txt file is used and information that belongs in the <head>...</head> section is put in the file (like the <head> tags and links to style sheets).

Also read this post
viewtopic.php?t=1019

Greetings,
Henrie

Posted: Fri Oct 06, 2006 7:43 pm
by Klemen
Hi,

That's because you modify gbook to send otu output (html code) before all HTTP headers are sent. You should upload the original gbook.php and DON'T paste any code insite gbook.php, use header.txt and footer.txt to add HTML code above and below gbook output.

Posted: Fri Oct 06, 2006 8:53 pm
by Raidersguy
Hi everyone thanks for the reply, a little lost sorry, I have a flash title in the header.txt file, should I leave that alone and put the animation in the gbook.php file is this what your saying, sorry if I have this wrong, but I must say it’s not a big problem only if I have done some work on the gbook.php and upload, thanks for your patience

Posted: Fri Oct 06, 2006 10:18 pm
by Henrie
You should leave the flash animation in the header.txt file. That's the correct way to do it.
Editing the Gbook.php file should only be done if you know your way in the code.

Greetings,
Henrie