问题 I want to modify some files inside zip file. I tried using the class zip and it works: $zip = new ZipArchive; $res = $zip->open('test.zip'); if ($res === TRUE) { $zip->extractTo('./', 'test.txt'); $fp=fopen("test.txt","a"); fputs($fp,"Hello"."\n"); fclose($fp); $zip->addFile('test.txt'); $zip->close(); unlink ("test.txt"); } Is it possible to not create temp file for modify, extract, repack, etc. Instead, only modify inside of zip file the target file I want change. If it is not possible with