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

Martin Marques martin at bugs.unl.edu.ar
Fri Jul 21 15:01:25 CEST 2006


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


Hope it helps. Anyway, getting the "?>" away fixes everything. ;-)


--
---------------------------------------------------------
Lic. Martín Marqués         |   SELECT 'mmarques' || 
Centro de Telemática        |       '@' || 'unl.edu.ar';
Universidad Nacional        |   DBA, Programador, 
    del Litoral             |   Administrador
---------------------------------------------------------






More information about the Dev mailing list