Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/04/2010, 07:13
matthieu
 
Fecha de Ingreso: abril-2010
Mensajes: 4
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: Ayuda con Script de Inicio

por favor disculpar me por mi espanol

duskrow tiene razon, header solo funciona cuando no has mostrado nada en el sitio, depende de tu configuration de PHP.

Tengo una idea, pero no es cierto, creo que debes:

En su inicio de tu pagina, antes todos otros codes, escribir (not sure how to say it in spanish lol, I mean, write this at the very beginning of the page, before anything else )


Código PHP:
<?php
ob_start
();
?>
y despues todo otros codes, escribir (write this at the very end of the page, after any other php code)
Código PHP:
<?php
ob_end_flush
();

?>

Si no functiona, puedes escribir un poco de javascript:

en lugar de header("location: sistema.php"); , escribir

Código PHP:

echo "<script language='Javascript'>document.location='tupagina.php'</script>"
Pero no es bien, porque si el javascript no es activado, el scripto no puede functionar.

Si nada fonctiona, tu puedes configurar el header en php.ini.