PHP解压缩zip文件

标签:,

<?php
header(‘Content-type: text/html;charset=utf-8′);
error_reporting(E_ALL);
set_time_limit(0);

$zip_filename = “Test.zip”;

$zip_filename = key_exists(‘zip’, $_GET) && $_GET['zip']?$_GET['zip']:$zip_filename;
$zip_filepath = str_replace(‘\\’, ‘/’, dirname(__FILE__)) . ‘/’ . $zip_filename;

if(!is_file($zip_filepath))
{
(全文 …)