<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>浮山狼de博客 &#187; PHP类</title>
	<atom:link href="https://www.fushanlang.com/tag/php-classes/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fushanlang.com</link>
	<description>next station - 下一站，活在当下，且行且思</description>
	<lastBuildDate>Sat, 29 Nov 2014 15:14:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.5</generator>
	<item>
		<title>PclZip:强大的PHP压缩与解压缩zip类</title>
		<link>https://www.fushanlang.com/pclzip-powerful-php-class-zip-compression-and-decompression-451/</link>
		<comments>https://www.fushanlang.com/pclzip-powerful-php-class-zip-compression-and-decompression-451/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 02:21:57 +0000</pubDate>
		<dc:creator><![CDATA[fushanlang]]></dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[编程]]></category>
		<category><![CDATA[PHP类]]></category>
		<category><![CDATA[ZIP]]></category>

		<guid isPermaLink="false">http://www.fushanlang.com/blog/?p=451</guid>
		<description><![CDATA[ <p>PclZip简介 PclZip是一个很强大的压缩与解压缩zip文件的PHP类，PclZip library能够压缩与解压缩Zip格式的压缩档（WinZip、PKZIP）；且能对此类类档案进行处理，包括产生压缩档、列出压缩档的内容以及解压缩档案等等。</p> <p>简单、易用、强大是我对它的评价。</p> <p>最近在开发我的Wordpress插件ShareLink，在这过程中，发现了PclZip这个操作zip文件的PHP类，不得不推荐下。</p> <p>还有另外一个推荐的原因就是在它的源码里面让我发现了一个PHP函数参数的淫荡用法。下面将举例说明。</p> <p>生成zip文件 用法一：</p> &#60; ?php include_once(&#8216;pclzip.lib.php&#8217;); $archive = new PclZip(&#8216;archive.zip&#8217;); $v_list = $archive-&#62;create(&#8216;file.txt,data/text.txt,folder&#8217;); if ($v_list == 0) { die(&#8220;Error : &#8220;.$archive-&#62;errorInfo(true)); } ?&#62; <p>用法二：</p> &#60; ?php include_once(&#8216;pclzip.lib.php&#8217;); $archive = new PclZip(&#8216;archive.zip&#8217;); $v_list = $archive-&#62;create(&#8216;data/file.txt,data/text.txt&#8217;, PCLZIP_OPT_REMOVE_PATH, &#8216;data&#8217;, PCLZIP_OPT_ADD_PATH, &#8216;install&#8217;); if ($v_list == 0) { die(&#8220;Error : &#8220;.$archive-&#62;errorInfo(true)); } ?&#62; <span style="color:#777"> . . . &#8594; Read More: <a href="https://www.fushanlang.com/pclzip-powerful-php-class-zip-compression-and-decompression-451/">PclZip:强大的PHP压缩与解压缩zip类</a></span>]]></description>
				<content:encoded><![CDATA[<div>
<p><strong>PclZip简介</strong><br />
PclZip是一个很强大的压缩与解压缩zip文件的PHP类，PclZip  library能够压缩与解压缩Zip格式的压缩档（WinZip、PKZIP）；且能对此类类档案进行处理，包括产生压缩档、列出压缩档的内容以及解压缩档案等等。</p>
<p>简单、易用、强大是我对它的评价。</p>
<p>最近在开发我的Wordpress插件ShareLink，在这过程中，发现了PclZip这个操作zip文件的PHP类，不得不推荐下。</p>
<p>还有另外一个推荐的原因就是在它的源码里面让我发现了一个PHP函数参数的淫荡用法。下面将举例说明。<span id="more-451"></span></p>
<p><strong>生成zip文件</strong><br />
用法一：</p>
<div>
<div>&lt; ?php<br />
include_once(&#8216;pclzip.lib.php&#8217;);<br />
$archive = new PclZip(&#8216;archive.zip&#8217;);<br />
$v_list =  $archive-&gt;create(&#8216;file.txt,data/text.txt,folder&#8217;);<br />
if ($v_list ==  0) {<br />
die(&#8220;Error : &#8220;.$archive-&gt;errorInfo(true));<br />
}<br />
?&gt;</div>
</div>
<p>用法二：</p>
<div>
<div>&lt; ?php<br />
include_once(&#8216;pclzip.lib.php&#8217;);<br />
$archive = new PclZip(&#8216;archive.zip&#8217;);<br />
$v_list =  $archive-&gt;create(&#8216;data/file.txt,data/text.txt&#8217;,<br />
PCLZIP_OPT_REMOVE_PATH, &#8216;data&#8217;,<br />
PCLZIP_OPT_ADD_PATH, &#8216;install&#8217;);<br />
if ($v_list == 0) {<br />
die(&#8220;Error : &#8220;.$archive-&gt;errorInfo(true));<br />
}<br />
?&gt;</div>
</div>
<p>看见create方法的参数没有，再看看方法原型你就知道如何淫荡了。至少我还没有这样用过。</p>
<p>相关文档：<br />
<a href="http://www.phpconcept.net/pclzip/index.php">PclZip官方地址</a>：http://www.phpconcept.net/pclzip/index.php<br />
<a href="http://www.phpconcept.net/pclzip/man/en/index.php">PclZip手册地址</a>：http://www.phpconcept.net/pclzip/man/en/index.php<br />
<a href="http://www.ccvita.com/10.html">PEAR类创建ZIP档案文件</a>：http://www.ccvita.com/10.html<br />
<a href="http://www.ccvita.com/59.html">PclZip简介与使用</a>：http://www.ccvita.com/59.html<br />
<a href="http://www.ccvita.com/330.html">PclZip:强大的PHP压缩与解压缩zip类</a>：http://www.ccvita.com/330.html</p>
</div>
]]></content:encoded>
			<wfw:commentRss>https://www.fushanlang.com/pclzip-powerful-php-class-zip-compression-and-decompression-451/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
