Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

all new php code now sends the header already sent warning

New Here ,
Sep 16, 2008 Sep 16, 2008
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:


TOPICS
Server side applications
354
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 17, 2008 Sep 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 17, 2008 Sep 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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 17, 2008 Sep 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 17, 2008 Sep 17, 2008
LATEST
Ok - thank you very much. That is good information to have and is quite a relief as this problem was driving me nuts!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines