Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/07/2010, 17:47
MoebiusDigital
 
Fecha de Ingreso: junio-2007
Ubicación: Buenos Aires, Argentina
Mensajes: 262
Antigüedad: 16 años, 11 meses
Puntos: 1
Respuesta: problema con header e include_once

El header("Location:www.otrositio.com"); debiera ir antes de cualquier cosa que se imprima dentro de la página. Al fin y al cabo, si tu intención es enviar al visitante a otra dirección, ¿qué sentido tiene mostrar algo en pantalla antes?

Esto dice en el sitio php.net:
Cita:
Note: The HTTP status header line will always be the first sent to the client, regardless of the actual header() call being the first or not. The status may be overridden by calling header() with a new status line at any time unless the HTTP headers have already been sent.
Fuente: http://ar.php.net/manual/es/function.header.php
__________________
Moebius Digital | La pieza que faltaba
Diseño web | Web hosting