|
Posted by Jerry Stuckle on 03/22/06 05:11
Chris Robb wrote:
> 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
>
Sorry, my crystal ball isn't working tonight. I can't tell what might
be happening without seeing some code.
But it looks like it tried to send header information on line 88 but
output had already been sent on line 54.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|