Ver Mensaje Individual
  #8 (permalink)  
Antiguo 24/02/2011, 11:03
Avatar de Nano_
Nano_
 
Fecha de Ingreso: febrero-2006
Ubicación: Bogotá, Colombia
Mensajes: 1.866
Antigüedad: 18 años, 2 meses
Puntos: 96
Respuesta: Repetir la consulta si fallase hasta que salga bien

Saludos

Yo creería que no funciona, se quedaría pegado. Deberías pasarle por get el valor de contador en el que va

Código PHP:
Ver original
  1. $xml = simpleXML_load_file($xml_file,"SimpleXMLElement",L IBXML_NOCDATA);
  2. if($xml === FALSE)
  3. {
  4.  
  5. $valor=0;
  6. $secuncia=$valor+$valorGet;
  7.  
  8. if($secuncia<=5){
  9.  $valorGet++;
  10.  header("Location: http://www.miweb.com/ifase.php?valor=$valorGet");
  11. }
  12.  
  13. exit('Error al intentar abrir el fichero '.$xml_file);
  14. }
__________________
:.:Nano.:: @nano_hard - Retornando al foro