PHPでディレクトリを[再帰的に]圧縮する方法は?
ディレクトリは次のようなものです: home/ file1.html file2.html Another_Dir/ file8.html Sub_Dir/ file19.html PHPMyAdmin http://trac.seagullproject.org/browser/branches/0.6-bugfix/lib/other/Zip.phpで使用されているものと同じPHP Zipクラスを使用しています。ファイルではなくディレクトリを圧縮する方法がわかりません。ここに私がこれまで持っているものがあります: $aFiles = $this->da->getDirTree($target); /* $aFiles is something like, path => filetime Array ( [home] => [home/file1.html] => 1251280379 [home/file2.html] => 1251280377 etc... ) */ $zip = & new Zip(); foreach( $aFiles as $fileLocation => $time ){ $file = $target …