I am creating dynamic zip files on the server using Archive::Zip.
Now I have 2 problems, firstly the zip file containts full directory structure of the server, as in, /home/vhosts/httpd/ etc etc
Can I have it so just the files are stored rather than the directory structure?
I am using:
$zip->addFile( $zipperFile )
or warn "Error adding file $fileToAdd\n";
Also, the files in the above example are named pv_$fileID.mp3, but to make more sense, I would like to rename them to a field out of the database, so is there a way of saying "add this file, but call it this..." type command?
Any help appreciated!!