◆ addFile()
addFile |
( |
|
$data, |
|
|
|
$name, |
|
|
|
$time = 0 |
|
) |
| |
Adds "file" to archive
- Paramètres
-
string | $data | file contents |
string | $name | name of the file in the archive (may contains the path) |
integer | $time | the current timestamp @access public |
◆ file()
Dumps out file
- Renvoie
- string the zipped file @access public
◆ unix2DosTime()
unix2DosTime |
( |
|
$unixtime = 0 | ) |
|
Converts an Unix timestamp to a four byte DOS date and time format (date in high two bytes, time in low two bytes allowing magnitude comparison).
- Paramètres
-
int | $unixtime | the current Unix timestamp |
- Renvoie
- integer the current date in a four byte DOS format @access private
◆ $ctrl_dir
array $ctrl_dir = array() |
◆ $datasec
Array to store compressed data
◆ $eof_ctrl_dir
string $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00" |
End of central directory record
◆ $old_offset
La documentation de cette classe a été générée à partir du fichier suivant :