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.
|
|
|
 |
|