Posted by Chris Robb on 03/22/06 05:03
I'm having some really odd behavior with a PHP script. I have it
populating an HTML select form with a for loop. When I try the years
2006 to 1900. I get the following error:
PHP Warning: Cannot modify header information - headers already sent
by (output started at
/Users/chrobb/Sites/city-directory/controlBar.php:54) in
/Users/chrobb/Sites/city-directory/controlBar.php on line 88
I've done a fair amount of searching and it looks like this usually
shows up when people have some extra whitespace after their closing PHP
tags. Doesn't apply seem to apply here. When I crank the number down on
the for loop to 94 iterations, the error goes away. Once I crank it up
to 95, the error comes into play. So, it's tied to the output somehow.
Looking at the raw HTML, there doesn't appear to be any significant
difference between the version with 94 iterations versus the one with
95 iterations, except for the error and the failure of my script.
Anyone have any ideas? I'm tapped out.
-Chris
[Back to original message]
|