<?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>最优良人 &#187; unlink</title>
	<atom:link href="http://www.zui88.com/view-tag/unlink/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zui88.com/blog</link>
	<description>中山php&#124;最优网络</description>
	<lastBuildDate>Mon, 13 May 2013 04:56:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>PHP删除指定文件夹所有文件的方法</title>
		<link>http://www.zui88.com/blog/view-356.html</link>
		<comments>http://www.zui88.com/blog/view-356.html#comments</comments>
		<pubDate>Fri, 06 Apr 2012 01:23:56 +0000</pubDate>
		<dc:creator>lin</dc:creator>
				<category><![CDATA[后端程序]]></category>
		<category><![CDATA[unlink]]></category>

		<guid isPermaLink="false">http://www.zui88.com/blog/?p=356</guid>
		<description><![CDATA[以下代码实现删除指定文件夹所有文件 $cacheDir = '../cache/runtime'; $dh = opendir($cacheDir); while ( $file = readdir($dh) ) { if (($file == '.') &#124;&#124; ($file == '..')) { continue; } if (file_exists( $cacheDir . '/' .$file)) { if (!unlink($cacheDir . '/' . $file)) { break; } } }]]></description>
			<content:encoded><![CDATA[<p>以下代码实现删除指定文件夹所有文件</p>
<p>$cacheDir = '../cache/runtime';<br />
$dh = opendir($cacheDir);<br />
while ( $file = readdir($dh) ) {</p>
<p>if (($file == '.') || ($file == '..')) { continue; }</p>
<p>if (file_exists( $cacheDir . '/' .$file)) {<br />
if (!unlink($cacheDir . '/' . $file)) {<br />
break;<br />
}<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zui88.com/blog/view-356.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
