PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0

Mark Edwards mark at antsclimbtree.com
Fri Jul 21 18:08:27 CEST 2006


On Jul 21, 2006, at 6:01 AM, Martin Marques wrote:

>
> On Fri, 21 Jul 2006 9:34:19 -0300, Martin Marques  
> <martin at bugs.unl.edu.ar> wrote:
>>
>> OK, I'm seeing to much of this error messages, and they are not  
>> related to
>> the config files main.inc.php or db.inc.php.
>>
>> Some script has a new line at the end, after the closing "?>".
>>
>> Now, I have a proposle, backed up by a mail from Rasmus Leardorf:
>>
>> http://marc.theaimsgroup.com/?l=php-dev&m=106896382030183&w=2
>>
>> Why not get ride of the closing "?>" at the end of the scripts?
>
> OK, found the new line that was messing up everything:
>
> $ svn diff
> Index: program/lib/Mail/mime.php
> ===================================================================
> --- program/lib/Mail/mime.php   (revision 278)
> +++ program/lib/Mail/mime.php   (working copy)
> @@ -909,4 +909,3 @@
>
>  } // End of class
>  ?>
> -

While this file indeed had an extra line at the end for me, I still  
get errors after fixing it, so there's yet another culprit. :-/

--
Mark Edwards






More information about the Dev mailing list