php code generates html errors

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
dirko
Posts: 29
Joined: Wed Mar 29, 2006 7:41 pm

php code generates html errors

Post by dirko »

Script URL: http://www.pagina.hu/mboard & http://www.pagina.hu/gbook
Version of script: gbook 1.4 mboard 1.21
Version of PHP: 4.1.12
Hosting company: own RH fBSD
Have you searched THIS FORUM for your problem: YES

If so, what terms did you try: error codes

Write your message below:

trying to implement gbook code from ?> to <? in a template html page.
but then get the following erros:

""Warning: Cannot modify header information - headers already sent by (output started at /home/pagina/domains/pagina.hu/public_html/gbook/gbook.php:13) in /home/pagina/domains/pagina.hu/public_html/gbook/gbook.php on line 1300"" etc.

the code on these lines are:

function printNoCache() {
header("Expires: Mon, 26 Jul 2000 05:00:00 GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
} // END printNoCache


Can i migrate this code somewhere else on the page? coz if we grey 'm out, we got other errors or session/cookie probs.

Please help. :(
dirko
hungary
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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
Locked