class compress_zip extends compress
Zip creation class from phpMyAdmin 2.3.0 (c) Tobias Ratschiller, Olivier Müller, Loïc Chapeaux, Marc Delisle, http://www.phpmyadmin.net/
Zip extraction function by Alexandre Tedeschi, alexandrebr at gmail dot com
Modified extensively by psoTFX and DavidMJ, (c) phpBB Limited, 2003
Based on work by Eric Mueller and Denis125 Official ZIP file format: http://www.pkware.com/appnote.txt
Properties
$fp | ||
$datasec | ||
$ctrl_dir | ||
$eof_cdh | ||
$old_offset | ||
$datasec_len |
Methods
add_file($src, $src_rm_prefix = '', $src_add_prefix = '', $skip_files = '')
Add file to archive |
from compress | |
add_custom_file($src, $filename)
Add custom file (the filepath will not be adjusted) |
from compress | |
add_data($src, $name)
Add file data |
from compress | |
static array |
methods()
Return available methods |
from compress |
compress_zip($mode, $file)
Constructor |
||
unix_to_dos_time($time)
Convert unix to dos time |
||
extract($dst)
Extract archive |
||
close()
Close archive |
||
data($name, $data, $stat, $is_dir = false)
Create the structures ... |
||
file()
file |
||
download($filename, $download_name = false)
Download archive |
Details
in compress at line 37
public
add_file($src, $src_rm_prefix = '', $src_add_prefix = '', $skip_files = '')
Add file to archive
in compress at line 107
public
add_custom_file($src, $filename)
Add custom file (the filepath will not be adjusted)
in compress at line 121
public
add_data($src, $name)
Add file data
in compress at line 167
static public array
methods()
Return available methods
at line 213
public
compress_zip($mode, $file)
Constructor
at line 229
public
unix_to_dos_time($time)
Convert unix to dos time
at line 246
public
extract($dst)
Extract archive
at line 409
public
close()
Close archive
at line 422
public
data($name, $data, $stat, $is_dir = false)
Create the structures ...
note we assume version made by is MSDOS
at line 509
public
file()
file
at line 524
public
download($filename, $download_name = false)
Download archive