PDA

Click to See Complete Forum and Search --> : zip archive


stejano
Aug 21st, 2007, 02:42 PM
I've found this system to create zip files...
http://articles.techrepublic.com.com/5100-3513_11-6125204.html

and I use this code for me:

<?php
include ('Zip.php');
// Create instance of Archive_Zip class, and pass the name of our zipfile
$zipfile = New Archive_Zip("$nometema.zip");

// Create a list of files and directories
$list = array("theme.xml","$nomenome/Idle.bmp");

//Create the zip file
$zipfile->create($list);

echo 'Zip file created';



?>

but when I create my zip file...it is with file theme.xml and the folder $nomenome with the file Idle.bmp but I want only the file Idle.bmp without the folder.....why this problem and how can i resolve it?don' t you know? thanks!!