Making a temporary dir for unpacking a zipfile into

后端 未结 7 546
心在旅途
心在旅途 2020-12-29 23:05

I have a script that checks a zipfile containing a number of matching PDF+textfiles. I want to unpack, or somehow read the textfiles from the zipfile, and just pick out some

7条回答
  •  一整个雨季
    2020-12-29 23:40

    quite easy (I took partly it from the PHP manual):

    See: https://www.php.net/manual/en/function.tempnam.php

    Please look at Will's solution below.

    => My answer should not be the accepted answer anymore.

提交回复
热议问题