I\'m trying to use php to create a zip file (which it does - taken from this page - http://davidwalsh.name/create-zip-php), however inside the zip file are all of the folder
I think a better option would be:
$zip->addFile($file,basename($file));
Which simply extracts the filename from the path.