RE: [PHP-ES] Error en autenticacion!

From: Date: Wed, 11 Jul 2001 21:20:56 +0000
Subject: RE: [PHP-ES] Error en autenticacion!
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-12198@lists.php.net to get a copy of this message
Hola! > Warning: Cannot add header information - headers already sent by (output > started at /usr/apache/htdocs/uno.php:8) in /usr/apache/htdocs/uno.php on > line 10 > > Warning: Cannot add header information - headers already sent by (output > started at /usr/apache/htdocs/uno.php:8) in /usr/apache/htdocs/uno.php on > line 11 > You must enter a valid login ID and password to access this resource Para enviar headers debe serciorarse de que es lo primero que hace en la página antes de imprimir texto. Por ejemplo, no se debe hacer: <html> <head> <title>Esta es una prueba</title> </head> <?php header("Location: http://algundominio.com/algunapagina.php"); ?> ... lo primero que tiene que enviar es el header, de la siguiente forma: <?php header("Location: http://algundominio.com/algunapagina.php"); ?> <html> <head> <title>Esta es una prueba</title> </head>... Revise su script, seguramente esta haciendo un "echo" o un "print" o simplemente colocando código HTML antes de llamar a la función header. Suerte! Pacho fmurcia@cycosites.com fmurcia@claustro.urosario.edu.co pacho85@hotmail.com - We're in this together, Trent Reznor, Nine Inch Nails Webmaster Universidad del Rosario Departamento de Tecnología Tel: 2970200 Ext: 503 Email: wm@claustro.urosario.edu.co http://www.urosario.edu.co

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