diff options
author | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2006-10-15 21:09:28 +0000 |
commit | 88ec761548b66f58acc1a86cdd0fc164ca925476 (patch) | |
tree | d0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/zip/examples/fopen.php | |
parent | 268984b4787e797db6054313fc9ba3b9e845306e (diff) | |
download | php-git-PECL_OPENSSL.tar.gz |
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/zip/examples/fopen.php')
-rw-r--r-- | ext/zip/examples/fopen.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/ext/zip/examples/fopen.php b/ext/zip/examples/fopen.php deleted file mode 100644 index 5af37b1ab3..0000000000 --- a/ext/zip/examples/fopen.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php - -$fp = fopen('zip://' . dirname(__FILE__) . '/test.zip#test', 'r'); -if (!$fp) { - exit("cannot open\n"); -} -while (!feof($fp)) { - $contents .= fread($fp, 2); - echo "$contents\n"; -} - -fclose($fp); -echo "done.\n"; - - -$content = ''; -$z = new ZipArchive(); -$z->open(dirname(__FILE__) . '/test.zip'); -$fp = $z->getStream('test'); - -var_dump($fp); -if(!$fp) exit("\n"); -while (!feof($fp)) { - $contents .= fread($fp, 2); -} - -fclose($fp); -file_put_contents('t',$contents); -echo "done.\n"; - - |