Foros del Web » Programando para Internet » PHP »

Error:headers already sent

Estas en el tema de Error:headers already sent en el foro de PHP en Foros del Web. Warning: Cannot modify header information - headers already sent by (output started at /home/creacion/public_html/registro.php:7) in /home/creacion/public_html/registro.php on line 103 Porqque me sale ese error al ...
  #1 (permalink)  
Antiguo 31/05/2010, 11:27
 
Fecha de Ingreso: septiembre-2009
Mensajes: 135
Antigüedad: 14 años, 7 meses
Puntos: 0
De acuerdo Error:headers already sent

Warning: Cannot modify header information - headers already sent by (output started at /home/creacion/public_html/registro.php:7) in /home/creacion/public_html/registro.php on line 103

Porqque me sale ese error al ejecutar esta linea

header("Location: index.php");


Muchas Gracias
  #2 (permalink)  
Antiguo 31/05/2010, 11:29
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: Error:headers already sent

Lee esto http://www.forosdelweb.com/wiki/PHP:...dy_sent%3F
y estohttp://www.forosdelweb.com/wiki/PHP:...n_line_4%22%3F
__________________
More about me...
~ @rhyudek1
~ Github
  #3 (permalink)  
Antiguo 31/05/2010, 11:52
Avatar de cesarpunk  
Fecha de Ingreso: enero-2008
Ubicación: Lima
Mensajes: 943
Antigüedad: 16 años, 3 meses
Puntos: 9
Respuesta: Error:headers already sent

traduciendo: el header("Location: index.php"); debes ponerlo antes de cualquier etiqueta html
__________________
Quitenme la vida pero no la bebida.

Etiquetas: header
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:37.