Page 1 of 1

Headers are echoed in the page

Posted: Thu Aug 12, 2010 4:44 am
by carles.rabaneda
Hi All,

I have a very strange behaviour. I'm sure it is a configuration problem on PHP (4.2.0) or Apache (2.2)-
In all PHP pages the output shown in the browser always include the headers.
For instance

<?php

echo phpinfo() ;

?>

It shows "Content-type: text/html" before the rest of the phpinfo() output.

Please how can I disable this?

Thanks,


Carles.

Re: Headers are echoed in the page

Posted: Thu Aug 12, 2010 8:09 am
by Borojimmy
Check your php.ini file, you may have inadvertantly placed some code in the 'prepend' section.

It may not be, but its worth a look.


Jimmy