Skip to main content
Participant
September 16, 2008
Question

all new php code now sends the header already sent warning

  • September 16, 2008
  • 4 replies
  • 380 views
I have had none of these 'headers already sent....' problems creating php forms in the past with dreamweaver cs3 (on leopard). Now, every single php form generated using dreamweaver returns this warning - without fail. I copied the EXACT code from a working login form into a new page.....the new page, using the same include file is now returning the warning: I am pasting the code that works, and below that, the code that does not work. Even Developer Toolkit, on the rare occasion it doesn't cause DW to crash, seems to be inserting code that does not work properly - same goes for the insert > data objects.

I've attached the code from both pages - page that works at the top, page that doesn't work at the bottom:


This topic has been closed for replies.

4 replies

Participant
September 17, 2008
Ok - thank you very much. That is good information to have and is quite a relief as this problem was driving me nuts!
Inspiring
September 17, 2008
debrankin55 wrote:
> thank you - your first suggestion did the trick. I am curious however, the
> Unicode Signature (BOM) was selected in all the pages previously created that
> still work fine. This problem may have begun after adobe installer ran an
> update? I am not sure, but it was about 1 month ago these header warnings
> began.... Is there something I am missing??

I have no idea. It's quite possible that something might have changed in
the way that PHP handles the BOM.

However, the BOM is not used by UTF-8, so you should deselect it in all
pages.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Participant
September 17, 2008
thank you - your first suggestion did the trick. I am curious however, the Unicode Signature (BOM) was selected in all the pages previously created that still work fine. This problem may have begun after adobe installer ran an update? I am not sure, but it was about 1 month ago these header warnings began.... Is there something I am missing??
thanks
Inspiring
September 17, 2008
debrankin55 wrote:
> I have had none of these 'headers already sent....' problems creating php forms
> in the past with dreamweaver cs3 (on leopard). Now, every single php form
> generated using dreamweaver returns this warning - without fail.

Select Modify > Page Properties, and check Title/Encoding. Make sure
that Include Unicode Signature (BOM) is deselected.

If that doesn't do the trick, select View > Code View Options > Hidden
Characters. Make sure there aren't any rogue characters outside the PHP
tags, both in the affected page and any include file.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/