ID: 47324 User updated by: kmteoh at hotmail dot com Reported By: kmteoh at hotmail dot com Status: Open Bug Type: Zip Related Operating System: w2k PHP Version: 5.2.9RC1 Assigned To: pajoye New Comment:
$path = 'C:\\inetpub\\wwwroot\\teohm\\gus\\'; //files to add in archive $file = 'C:\\inetpub\\wwwroot\\teohm\\gus.zip'; //target $zip = new ZipArchive(); if (($zip->open($file, ZipArchive::CREATE)) === TRUE) { archive($path, null); //same function as previous attachment $zip->close(); } i see gus.zip.a03932 and gus.zip.b03932 in "C:\\inetpub\\wwwroot\\teohm\\" still not working :( Previous Comments: ------------------------------------------------------------------------ [2009-03-02 21:46:30] paj...@php.net Yes, as it tries to add the temporary files as well (recursive additions so to say). Can you try to create the archive in a complete different path: c:\www\foo\t.zip and add the content of c:\www\bar\ for example. ------------------------------------------------------------------------ [2009-03-02 21:39:58] kmteoh at hotmail dot com "Or are you trying to create t.zip in the \testscript\ directory using the content of \testscript\? That would be bad :)" i was actually trying to create new zip file in the folder i store my source file and source code (i was treating the zip.php is the file i want to add into archive) is that what causing all problem? ------------------------------------------------------------------------ [2009-03-02 21:33:30] paj...@php.net Where are the files that you are actually adding to the archive? All I see is a normal script and nothing but tempory (and corrupted) files created by the zip extensions, for example t.zip.a03252. Or are you trying to create t.zip in the \testscript\ directory using the content of \testscript\? That would be bad :) ------------------------------------------------------------------------ [2009-03-02 21:27:31] kmteoh at hotmail dot com http://www.mingspc.com/mingspc/source.zip here is the source code. the script i was using are all from php.net anyway ------------------------------------------------------------------------ [2009-03-02 15:46:37] paj...@php.net I need the script you use to create this archive AND the original files you add to the archives. To show me the corrupted archive is not enough. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/47324 -- Edit this bug report at http://bugs.php.net/?id=47324&edit=1