Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/10/2011, 02:42
dasapa
 
Fecha de Ingreso: octubre-2011
Mensajes: 206
Antigüedad: 12 años, 6 meses
Puntos: 1
cargar archivos simplexml

Buenas,
a ver si alguien encuentra el error..

$zip = new ZipArchive;
$zip->extractTo('C:\wamp\www\facturas');

Esto lo hace bien...

for ($i=0;$i<$zip->numFiles;$i++)
{
foreach (glob('C:\wamp\www\facturas\*.xml') as $file);

$xml = simplexml_load_file($file);
....
}

Yo quiero que vaya uno a uno leyendo los ficheros que he extraido en la carpeta pero solo me coge uno...