Page 1 of 1

php code generates html errors

Posted: Thu Jul 20, 2006 11:32 pm
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

Posted: Thu Jul 20, 2006 11:51 pm
by Klemen