CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 RE:

Print topic Send  topic

Author Message
glerma
Posted: 06/12/2003, 3:15 PM

Environment
PHP: 4.3.1
Apache: 2.0
CodeCharge Studio: 2.1

I know this is a general PHP question, but thought I might ask anyway. Maybe some PHP gury can help.

I am trying to solve a headers output problem.

Scenario:
I am trying to implement a function that buids a tree menu. There are some echo statments in it. These echo statements build the Javascript structrue needed to display the Tree Menu properly. This function is called in an page which is included in each page.

Problem:
The function is called O.K. on page load, but when I do a POST on the same page, the header() statement calls the message:
Warning: Cannot modify header information - headers already sent by ....


I understand i bit why it's doing it: Because the echo statements are being called again, after the page headers have already been sent.

What I am wondering is if anyone has used PHP's Output Buffering Functions successfully WITH CodeCharge-generated pages in order to alleviate this problem.

Incidentally, I have already tried turning off Output Buffering. This does not seem to do anything

Regards,
g.
glerma
Posted: 06/12/2003, 3:21 PM

Oops. I mis-labled by Topic.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.