Headers are echoed in the page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
carles.rabaneda
Forum Newbie
Posts: 1
Joined: Thu Aug 12, 2010 4:19 am

Headers are echoed in the page

Post 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.
Borojimmy
Forum Newbie
Posts: 12
Joined: Fri Mar 20, 2009 2:08 pm

Re: Headers are echoed in the page

Post 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
Post Reply