Well, I have never *ever* worked with ZipArchive, but it seems to me that extractTo needs to have that first param not empty. Obviously, only the second param is optional.
Ref: http://www.php.net/manual/en/function.ziparchive-extractto.php Maybe you should try something in the line of $zip->extractTo('.'); ? Does this make any sense? On May 16, 3:36 pm, Unite <[EMAIL PROTECTED]> wrote: > OS = winXP > WAMP = ver 2; > > I have the following in my cakephp code > > $zipPath = realpath("00000000.zip"); > $zip = new ZipArchive; > $zip->open($zipPath); > $zip->extractTo(""); > $zip->close(); > > open returns a ZipArchive object; > extractTo returns no errors > close returns true > > From the above you can say that the file has been unzipped because > close returns true but it hasnt. Nothing has been written to the > directory or any directory. I know extractTo is running because if i > pass a directory that directory is created in the correct place. > Nothing returns and errors and no zip contents has been created. > I have enabled extension=php_zip.dll in php.ini > Has anyone ever had this error before. Is php_zip.dll not included > somewhere its ment to? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
