summaryrefslogtreecommitdiff
path: root/ext/zip/examples/create.php
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
committerSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
commit88ec761548b66f58acc1a86cdd0fc164ca925476 (patch)
treed0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/zip/examples/create.php
parent268984b4787e797db6054313fc9ba3b9e845306e (diff)
downloadphp-git-PECL_OPENSSL.tar.gz
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/zip/examples/create.php')
-rw-r--r--ext/zip/examples/create.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/ext/zip/examples/create.php b/ext/zip/examples/create.php
deleted file mode 100644
index cffacee93b..0000000000
--- a/ext/zip/examples/create.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-error_reporting(E_ALL);
-$thisdir = dirname(__FILE__);
-unlink("./test112.zip");
-$zip = new ZipArchive();
-$filename = "./test112.zip";
-
-if (!$zip->open($filename, ZIPARCHIVE::CREATE)) {
- exit("cannot open <$filename>\n");
-} else {
- echo "file <$filename> OK\n";
-}
-
-$zip->addFromString("testfilephp.txt" . time(), "#1 This is a test string added as testfilephp.txt.\n");
-$zip->addFromString("testfilephp2.txt" . time(), "#2 This is a test string added as testfilephp2.txt.\n");
-$zip->addFile($thisdir . "/too.php","/testfromfile.php");
-echo "numfiles: " . $zip->numFiles . "\n";
-echo "status:" . $zip->status . "\n";
-$zip->close();
-unset($zip);