发布时间:2015-05-27 19:34:13作者:知识屋
<?php
class PHPZip
{
private $ctrl_dir = array();
private $datasec = array();
/**********************************************************
* ѹ������
**********************************************************/
// ------------------------------------------------------ //
// #����ָ���ļ���
//
// $archive = new PHPZip();
// $filelist = $archive->visitFile(�ļ���·��);
// print "��ǰ�ļ��е��ļ�:<p>/r/n";
// foreach($filelist as $file)
// printf("%s<br>/r/n", $file);
// ------------------------------------------------------ //
var $fileList = array();
public function visitFile($path)
{
global $fileList;
$path = str_replace("//", "/", $path);
$fdir = dir($path);
while(($file = $fdir->read()) !== false)
{
if($file == '.' || $file == '..'){ continue; }
$pathSub = preg_replace("*/{2,}*", "/", $path."/".$file); // �