Searched defs:zip (Results 1 - 7 of 7) 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)) {
H A Dset_compression.php3 if (!extension_loaded('zip')) {
4 dl('zip.so');
7 $zip = new ZipArchive(); variable
8 $filename = "a.zip";
10 if (!$zip->open($filename, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE)) {
14 $zip->addFromString("testfilephp.txt", "#1 This is a test string added as testfilephp.txt.\n");
15 $zip->addFromString("testfilephp2.txt", "#2 This is a test string added as testfilephp2.txt.\n");
16 $zip->addFile("too.php", "testfromfile.php");
18 $zip->setCompressionName("testfilephp2.txt", ZipArchive::CM_STORE);
19 $zip
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzipint.h58 #include "zip.h"
266 /* zip archive, part of API */
268 struct zip { struct
293 /* file in zip archive, part of API */
296 zip_t *za; /* zip archive containing this file */
302 /* zip archive directory entry (central or local) */
334 /* zip archive central directory */
343 zip_string_t *comment; /* zip archive comment */
374 zip_t *source_archive; /* zip archive we're reading from, NULL if not from archive */
382 /* entry in zip archiv
[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)
279 static int php_zip_add_file(struct zip *za, const char *filename, size_t filename_len,
396 static int php_zip_status(struct zip *za) /* {{{ */
414 static int php_zip_status_sys(struct zip *za) /* {{{ */
432 static int php_zip_get_num_files(struct zip *za) /* {{{ */
452 static char * php_zipobj_get_zip_comment(struct zip *za, int *len) /* {{{ */
703 ZEND_ARG_INFO(0, zip)
707 ZEND_ARG_INFO(0, zip)
768 typedef int (*zip_read_int_t)(struct zip *za);
769 typedef char *(*zip_read_const_char_t)(struct zip *z
1149 zval * zip; local
1216 zval * zip; local
[all...]

Completed in 23 milliseconds