Decompressing a .gz file via PHP

前端 未结 4 464
夕颜
夕颜 2021-01-14 09:42

I need to be able to decompress through PHP some data that I have in a string which uses the gzip format. I need to do this via PHP, not by calling - through

4条回答
  •  悲哀的现实
    2021-01-14 10:10

    gzdecode() is not yet in PHP. But you can use the implementation from upgradephp. It really is just a few extra header bytes.

    Another option would be to use gzopen. Maybe just like gzopen("data:app/bin,....") even.

提交回复
热议问题