PHP 基础复习 2018-06-21

(1)PHP Zip File 函数

$zip = zip_open("test.zip");

if ($zip)
  {
  while ($zip_entry = zip_read($zip))
    {
    echo "Name: " . zip_entry_name($zip_entry) . "<br />";
    }
  zip_close($zip);
  }
//结果:
Name: ziptest.txt
Name: htmlziptest.html

猜你喜欢

转载自www.cnblogs.com/gyfluck/p/9207673.html