Problem with header!

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Coulthard
Posts: 4
Joined: Tue Sep 04, 2007 6:57 pm

Problem with header!

Post by Coulthard »

Script URL: http://www.schoolreispraag.nl/Gastenboek/gbook.php
Version of script: 1.5
Hosting company: Redunix
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

If you go to the url above, you will see my problem!
I only changed the normal text from english to dutch!

Thanks for the help
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Delete any text or empty lines before the first <?php in gbook.php
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
Coulthard
Posts: 4
Joined: Tue Sep 04, 2007 6:57 pm

Post by Coulthard »

There is nothing before <?php !!!

It has to be something else, but thanks for the reply!
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Well that's not what the error says. Headers started on line 1 meaning the problem is on line 1. Do you get the same error if you upload ORIGINAL gbook.php file (not the translated one)? I would say no.

Zip your translated gbook.php and give me a link where I can download it if you want me to have a look.
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
Coulthard
Posts: 4
Joined: Tue Sep 04, 2007 6:57 pm

Post by Coulthard »

Ok, I uploaded the original gbook.php and then there is no error.

I zipped the one I changed, and you can find it here http://www.schoolreispraag.nl/Gastenboek/gbook15.zip
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

In which program did you edit gbook.php? You had some strange chars before <?php but neither Notepad nor Wordpad showed them, I had to open it in another program to even see it.

Anyway, here's the fixed version:
http://www.phpjunkyard.com/extras/gbook_fixed.zip

IMPORTANT: next time you edit gbook.php do it in Notepad to avoid such problems!
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
Coulthard
Posts: 4
Joined: Tue Sep 04, 2007 6:57 pm

Post by Coulthard »

Thanks for all the help!

Can you tell me the program name you used, in case I have the same problem again????

Thanks
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I used Webpad from DzSoft, it's not a free one (http://www.dzsoft.com/webpad.html).

Just edit gbook.php in Notepad (which comes with Windows) and you shouldn't have any problems.
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