Warning Message

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Raidersguy
Posts: 18
Joined: Thu Aug 17, 2006 9:30 pm

Warning Message

Post 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?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Raidersguy
Posts: 18
Joined: Thu Aug 17, 2006 9:30 pm

Post 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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
Post Reply