此回复为自动发出,仅用于显示而已,并无任何其他特殊作用
楼主【xiao_zi_lijing】截止到2008-07-04 10:39:46的历史汇总数据(不包括此帖):
发帖的总数量:2                        发帖的总分数:40                       
结贴的总数量:0                        结贴的总分数:0                        
无满意结贴数:0                        无满意结贴分:0                        
未结的帖子数:2                        未结的总分数:40                       
结贴的百分比:0.00  %               结分的百分比:0.00  %                  
无满意结贴率:---------------------无满意结分率:---------------------
如何结贴请参考这里:http://topic.csdn.net/u/20080501/09/ef7ba1b3-6466-49f6-9d92-36fe6d471dd1.html

解决方案 »

  1.   

    你用的是那种方法压缩成zip的?
      

  2.   

     ARCHIVE CLASSES
    是个扩展类原来用过
    可以压缩文件夹也是网上找的,楼主搜搜
      

  3.   

    谢谢各位
    我现在发现了php5自身的一个方法是ZipArchive
    用它就可以
    我又用了一个递归循环把文件夹中的文件都导入到了压缩包中
    大家可以试试
      

  4.   

    例 1. Create a Zip archive<?php$zip = new ZipArchive();
    $filename = "./test112.zip";if ($zip->open($filename, ZIPARCHIVE::CREATE)!==TRUE) {
        exit("cannot open <$filename>\n");
    }$zip->addFromString("testfilephp.txt" . time(), "#1 This is a test string added as testfilephp.txt.\n");
    $zip->addFromString("testfilephp2.txt" . time(), "#2 This is a test string added as testfilephp2.txt.\n");
    $zip->addFile($thisdir . "/too.php","/testfromfile.php");
    echo "numfiles: " . $zip->numFiles . "\n";
    echo "status:" . $zip->status . "\n";
    $zip->close();
    ?>  
      

  5.   

    php5自身有一个类 ZipArchive