Create a file in a zip archive using stream wrapper

后端 未结 2 1735
情书的邮戳
情书的邮戳 2021-01-23 11:24

I want to use a zip stream wrapper in PHP to create zip file or add files in a zip archive. Here are my example :



        
相关标签:
2条回答
  • 2021-01-23 11:55

    zip:// stream wrapper does not support writes: http://php.net/manual/en/wrappers.compression.php

    Besides, Zip archives cannot be written in a stream because the CRC comes before the compressed data

    0 讨论(0)
  • 2021-01-23 12:07

    Hey you tired to chmod your folder to 777 in which the ZIP file is in?

    Edit: It looks as though your files are not 777 and your folder. I could be wrong, just woke up. chmod 777 the folder itself and let me know if that doesn't work.

    0 讨论(0)
提交回复
热议问题