Ver Mensaje Individual
  #10 (permalink)  
Antiguo 24/02/2011, 12:59
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

Acabo de ver un error en el codigo que postie..

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. $valorGet=$_GET['valorGet'];
  7. $secuncia=$valor+$valorGet;
  8.  
  9. if($secuncia<=5){
  10.  $valorGet++;
  11.  header("Location: http://www.miweb.com/ifase.php?valorGet=$valorGet");
  12. }
  13.  
  14. exit('Error al intentar abrir el fichero '.$xml_file);
  15. }
__________________
:.:Nano.:: @nano_hard - Retornando al foro