Ver Mensaje Individual
  #5 (permalink)  
Antiguo 02/10/2009, 04:47
Mikelon85
 
Fecha de Ingreso: diciembre-2002
Ubicación: bilbao
Mensajes: 345
Antigüedad: 21 años, 5 meses
Puntos: 3
Respuesta: Problemas al leer XML

Cita:
Iniciado por samu22 Ver Mensaje
Código php:
Ver original
  1. <?php
  2. $archivo = 'prueba.xml';
  3. if (file_exists($archivo)) {
  4.      $imgs= simplexml_load_file($archivo);
  5.      if($imgs){
  6.            foreach($imgs->imgs as $img){
  7.            echo $img["path"];
  8.       }
  9. } else {
  10.      echo "error al Abrir el archivo";
  11. }
  12.  
  13. ?>

probalo asi
tampoco hace nada, me estoy dando cuenta que el replace del post anterior, al poner ?> cierra el PHP
__________________
aste nagusia