Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/02/2007, 15:35
santhy
 
Fecha de Ingreso: febrero-2006
Mensajes: 134
Antigüedad: 19 años
Puntos: 10
Windows + PHP no controla el buffer. Solución?

Pues estoy intentando hacer un juego en PHP, y quiero que en ciertos momentos tarde en mostrar algo (algo así como rapidshare, pero con el buffer interno).

El caso es que si hago esto en Windows:
Código PHP:

$seg 
date('s');
while(
$tiempoFin time()) {
  if(
$seg != date('s')) {
    echo 
"Quedan $timeleft segundos...<br />\r\n";
    
flush(); ob_flush(); // Y hasta poniendo esto sigue sin funcionar :(
    
$timeleft--;
    
$seg date('s');
  }

}

echo 
"Prueba pasada";
$_SESSION['canContinue'] = true// ;) 
Utilizo ob_start() y al final ob_end_flush(), pero ni con los flush() ni ob_flush() funciona en Windows.
Ya no me funcionaba en XP, pero en Vista tampoco.