Page 1 of 1

Problem with header!

Posted: Tue Sep 04, 2007 7:04 pm
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

Posted: Tue Sep 04, 2007 8:38 pm
by Klemen
Delete any text or empty lines before the first <?php in gbook.php

Posted: Wed Sep 05, 2007 4:28 pm
by Coulthard
There is nothing before <?php !!!

It has to be something else, but thanks for the reply!

Posted: Wed Sep 05, 2007 4:35 pm
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.

Posted: Thu Sep 06, 2007 1:51 pm
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

Posted: Thu Sep 06, 2007 2:38 pm
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!

Posted: Tue Sep 11, 2007 1:36 pm
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

Posted: Tue Sep 11, 2007 8:18 pm
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.