Warning: Cannot modify header information

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
wolfdragon

Warning: Cannot modify header information

Post by wolfdragon »

Script URL: http://wolfdragon.net/guestbook/gbook.php
Version of script: 1.3.2
Version of PHP: 4.3.11
Hosting company: http://www.centaurinetx.com/
Have you searched THIS FORUM for your problem: Yes
(if not please do before posting)
If so, what terms did you try: Cannot modify header information

Write your message below:

When viewing my guestbook, I get this message at the top:

Code: Select all

Warning: Cannot modify header information - headers already sent by (output started at /home/wolfdrgn/public_html/guestbook/gbook.php:2) in /home/wolfdrgn/public_html/guestbook/gbook.php on line 611

Warning: Cannot modify header information - headers already sent by (output started at /home/wolfdrgn/public_html/guestbook/gbook.php:2) in /home/wolfdrgn/public_html/guestbook/gbook.php on line 612

Warning: Cannot modify header information - headers already sent by (output started at /home/wolfdrgn/public_html/guestbook/gbook.php:2) in /home/wolfdrgn/public_html/guestbook/gbook.php on line 613

Warning: Cannot modify header information - headers already sent by (output started at /home/wolfdrgn/public_html/guestbook/gbook.php:2) in /home/wolfdrgn/public_html/guestbook/gbook.php on line 614
I tested it out on my computer and it worked out fine.

BTW, awesome work, I really like the script.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hello,

you probably have been editing gbook.php file? Make sure there is no space or empty lines before <?php in the file. Paste the top 5 lines of your gbook.php here if you can't get it to work.

Regards
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
wolfdragon

Post by wolfdragon »

Umm...yeah, I edited it a bit. I guess it's not the best idea for a n00b like me to mess with PHP. But what can I say...I like to customize.

There was a empty line at the top and after I deleted it, everything worked fine. Thanks for the help! :D
Guest

The same problem

Post by Guest »

I have the same problem, and there is no any space before <?PHP
Can you help me
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Have you tried with the ORIGINAL version (not edited)?
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
Post Reply