Re: problemas con include y header

From: Date: Tue, 20 Mar 2001 22:43:28 +0000
Subject: Re: problemas con include y header
References: 1 2 3  Groups: php.general.es 
Request: Send a blank email to general-es+get-8205@lists.php.net to get a copy of this message
No puedes mandar un header si ya has escrito en pantalla. Asegurate de que no escribes nada en 'comun.php'. El vie, 28 abr 2000, escribiste: > Hola a todos, > Por que tengo este error: > > Warning: Cannot add header information - headers already sent in > /www/htdocs/tajada/movilsat/test.php on line 3 > > Cuando hago esto: > <?php > include 'comun.php'; > header("Location:index.php"); > exit(); > ?> > > <html> > <head> > <title>test</title> > </head> > > <body> > > </body> > </html> > > Saludos, > Javier > > > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com

« previous php.general.es (#8205) next »