I use ziparchive to zip my files in linux, and can't open in windows default zip uploader, I suspect it is caused by the file path during addfile e.g.
$zip-addFile(‘/home/userName/public_html/gallery/license.txt’, ‘gallery/license.txt’);
Suggestion from links below mention that I coudl remove the local path(as this can't be understood by windows), which becomes becomes
$zip-addFile(‘/home/userName/public_html/gallery/license.txt’, ‘license.txt’);
But I need to maintain the directory structure, how should I address this problem?
tar -czf zippedFiles.zip /path/to/files
should work. – Zefiryn