Ver Mensaje Individual
  #11 (permalink)  
Antiguo 12/03/2012, 11:38
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Sencillo segundero.php

No puedes usar ningún echo antes de header, claramente tienes un echo ahí, ahora, no puedes comparar directamente con un string, tendrías que hacer algo así:
Código PHP:
Ver original
  1. $segundo = (int) $_GET['segundo'];
  2. $segundo++;
  3. if ($segundo > 59) {
  4.       die("Llegamos a $segundo segundos");
  5. }
  6. $self = $_SERVER['PHP_SELF'];
  7. header("Location: $self?segundo=$segundo");

Saludos.