Has something changed in php whilst I wasn't looking?

I have a html file that has a table with images I call into my code to represent a corporate header on my webpages.
All of a sudden in the last couple of days I keep getting the error message
'Warning: Cannot modify header information - headers already sent by (output started at /home//6VWYX645/htdocs///header.htm:9) in /home//6VWYX645/htdocs///download/process_download_1.php on line 15'

line 9 in file header.htm is just
<td width="631" valign="top" height="84"><a href="http://www.***.co.uk">

line 15 in file process_download.php is
<p>
in a html part of the page

What I cannot understand is this worked perfectly well last week - what has gone wrong?

I have checked to make sure that there is no space before the start of the php code.

Can anyone help?

thanks

    I once had an issue with this error message. I googled for a while and found that you can't add header information after you've echoed or printed any output at all. If you have header information in your php page, try to keep it at the top of the page, before you output anything. See if this helps.

      check for output before sending the headers...

      • white text/line breaks/tabs = output!
      • also check all files included before [man]header()[/man]!

        Maybe try:

        ob_start();
        include("/header.htm");
        ob_get_contents();
        ob_end_clean();
        

        where you are trying to include the header.

        I don't know really what the problem is though. Just a thought.

        Herk

          Write a Reply...