Open ImNotDeveloper opened 4 years ago
See php error log.
Try:
$directory = __DIR__ . '/resources/test';
That is not the error, when I extract the files, the server shuts down and does not throw any error.
Try cli mode and check the error log.
Good Morning. I have recently been testing this library and I found it very good, but I have a small error decompressing my zip file.
I am working on a game server.
$directory = '/resources/test'; if(!is_dir($directory)){ mkdir($directory, 0755, true); } $zipFile = new \PhpZip\ZipFile(); $zipFile->openFile("test.zip"); $zip->extractTo($directory); $zip->close();
The server only does not respond and shuts down.