Re: problemas con include y header

From: Date: Thu, 27 Apr 2000 22:55:34 +0000
Subject: Re: problemas con include y header
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-8210@lists.php.net to get a copy of this message
El archivo que estoy inclyendo es: <? $s="hello world"; ?> ----- Original Message ----- From: "fr4nc!sk0 j4v!3r" <pacho@mangle.univalle.edu.co> To: <lista@phpes.com> Sent: Tuesday, March 20, 2001 8:32 AM Subject: Re: [PHP-ES] problemas con include y header > > Hola ... Seria mucho mejor si envias el contenido del archivo que estas > incluyendo (comun.php), o al menos revisalo bien, lo mas probable es que > en ese archivo tengas una funcion echo o print o alguna otra funcion que > imprima algo y alli esta el problema, debes llamar a la funcion "header" > antes de imprimir cualquier cosa (inclusive etiquetas HTML fuera del > codigo PHP) ... Bye! > > P.D.: puedes leer en el manual function.header.html > > On Thu, 27 Apr 2000, assist wrote: > > > 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 > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Universidad del Valle Francisco Javier Lozano Bastidas > Vicerrectoria Academica Administrador Servidor "mangle" > Direccion de Educacion Desescolarizada Tel. : 3182624 3336450 4456826 > http://mangle.univalle.edu.co Beeper : 6555000 Cod. 5139 > > > --------------------------------------------------------------------- > 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 (#8210) next »