pourtant quand tu va sur http://fr3.php.net/manual-lookup.php?pattern=ziparchive&lang=fr tu a toute les fonctions
Tu fait un truc du genre :
<?php
$zip = new ZipArchive; $res = $zip->open('test.zip');
if ($res === TRUE) { for ($i=0; $i<$oZa->numFiles;$i++) { $aStats = $oZa->statIndex($i); if ($aStats['name'] == 'tonfichier') {
$oZa->extract ('destination', 'tonfichier'); }
} } else { echo 'échec, code:' . $res; } ?>
Bon, pour 'tonfichier' à extraire, si tu veux en extraire plusieurs, fait un tableau, et extrait tout hors du for !
Regarde la doc ! ya tout dedans ! :)
|