Свойство | Type | Description | |
---|---|---|---|
$intCount | integer | File count | |
$resFile | resource | File handle | |
$strCentralDir | string | Central directory | |
$strFile | resource | File name | |
$strTemp | resource | Temporary name |
Méthode | Description | |
---|---|---|
__construct ( string $strFile ) | Create a new zip archive | |
__destruct ( ) | Close the file handle if it has not been done yet | |
addFile ( string $strFile, string $strName = null ) | Add a file to the archive | |
addString ( string $strData, string $strName, integer $intTime ) | Add a file from a string to the archive | |
close ( ) | Write the central directory and close the file handle |
Méthode | Description | |
---|---|---|
unixToHex ( integer $intTime ) : integer | Convert a Unix timestamp to a hexadecimal value |
public __construct ( string $strFile ) | ||
$strFile | string | The file path |
protected string $strCentralDir | ||
Résultat | string |