Searched defs:zip (Results 1 - 6 of 6) sorted by relevance

/PHP_TRUNK/ext/zip/examples/
H A Dcreate.php3 if (!extension_loaded('zip')) {
4 dl('zip.so');
7 unlink("./test112.zip");
8 $zip = new ZipArchive(); variable
9 $filename = "./test112.zip";
11 if (!$zip->open($filename, ZIPARCHIVE::CREATE)) {
17 $zip->addFromString("testfilephp.txt" . time(), "#1 This is a test string added as testfilephp.txt.\n");
18 $zip->addFromString("testfilephp2.txt" . time(), "#2 This is a test string added as testfilephp2.txt.\n");
19 $zip->addFile($thisdir . "/too.php","/testfromfile.php");
20 echo "numfiles: " . $zip
[all...]
H A Dextract.php2 if (!extension_loaded('zip')) {
3 dl('zip.so');
6 $zip = new ZipArchive(); variable
8 echo $zip->filename . "\n";
9 $zip->open("test.zip");
11 $zip->addFile("./modules/");
12 $zip->addFile("./testempty");
14 echo $zip->status . "\n";
15 echo $zip
[all...]
H A DextractAll.php2 $zip = new ZipArchive(); variable
4 echo $zip->filename . "\n";
5 $zip->open("test.zip");
7 $zip->addFile("./modules/");
8 $zip->addFile("./testempty");
10 echo $zip->status . "\n";
11 echo $zip->statusSys . "\n";
13 echo $zip->numFiles . "\n";
14 echo $zip
[all...]
H A Doldapi.php3 $zip = zip_open('examples/test1.zip'); variable
4 var_dump($zip);
6 if ($zip) {
8 while ($zip_entry = zip_read($zip)) {
/PHP_TRUNK/ext/zip/lib/
H A Dzipint.h52 #include "zip.h"
172 typedef struct zip_source *(*zip_compression_implementation)(struct zip *,
175 typedef struct zip_source *(*zip_encryption_implementation)(struct zip *,
189 const zip_uint8_t *zip_get_extra_field_by_id(struct zip *, int, int, zip_uint16_t, int, zip_uint16_t *);
200 struct zip_source *zip_source_crc(struct zip *, struct zip_source *,
202 struct zip_source *zip_source_deflate(struct zip *,
206 struct zip_source *zip_source_layered(struct zip *,
211 struct zip_source *zip_source_pkware(struct zip *,
218 struct zip_source *zip_source_window(struct zip *, struct zip_source *,
271 /* zip archiv struct
[all...]
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c136 static int php_zip_extract_file(struct zip * za, char *dest, char *file, int file_len TSRMLS_DC)
279 static int php_zip_add_file(struct zip *za, const char *filename, size_t filename_len,
405 static int php_zip_status(struct zip *za TSRMLS_DC) /* {{{ */
414 static int php_zip_status_sys(struct zip *za TSRMLS_DC) /* {{{ */
423 static int php_zip_get_num_files(struct zip *za TSRMLS_DC) /* {{{ */
443 static char * php_zipobj_get_zip_comment(struct zip *za, int *len TSRMLS_DC) /* {{{ */
694 ZEND_ARG_INFO(0, zip)
698 ZEND_ARG_INFO(0, zip)
759 typedef int (*zip_read_int_t)(struct zip *za TSRMLS_DC);
760 typedef char *(*zip_read_const_char_t)(struct zip *z
1141 zval * zip; local
1203 zval * zip; local
[all...]

Completed in 16 milliseconds