ZipArchive - addFile won't work
问题 Situation I have a .zip file. In this .zip is a folder "dist/", in the folder "dist/" are 2 things: 1) another folder "lib/" 2) a jar-file I open the .zip and extract the dist/jar-file. A "new" folder will appear on my disk "dist" with the jar in it I open the jar-file with ZipArchive and edit this where needed. Edits are saved by addFromString() Now comes the crucial part I want to re-add the jar-file into the .zip I do this by doing $zip->addFile($newdir . 'dist/' . $corefile, 'dist/' .