<?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; PHP文件操作</title>
	<atom:link href="http://www.mikale.org/html/tag/php%e6%96%87%e4%bb%b6%e6%93%8d%e4%bd%9c/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mikale.org</link>
	<description>奇异的世界,小路的世界</description>
	<lastBuildDate>Thu, 03 Jun 2010 11:46:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>is_file比file_exists快N倍的补充</title>
		<link>http://www.mikale.org/html/2008/09/68.html</link>
		<comments>http://www.mikale.org/html/2008/09/68.html#comments</comments>
		<pubDate>Thu, 18 Sep 2008 06:21:45 +0000</pubDate>
		<dc:creator>小路</dc:creator>
				<category><![CDATA[web后端]]></category>
		<category><![CDATA[PHP文件操作]]></category>

		<guid isPermaLink="false">http://www.mikale.org/html/2008/09/68.html</guid>
		<description><![CDATA[    星星说:&#8221;is_file比file_exists快N倍 &#8221;    

    星星大神真是newbility~~~！PHP操作文件方式其实有两处跟C语言的不一样，一个是PHP的steam处理，封装各种流，另外一处就是线程安全的处理，virtual_access()的附加操作是线程安全的处理，若是unix，则调用access函数。    

   这些都是tsrm负责的，php的flock函数则是简单的用，没有进行线程安全处理，速度是很快，已知的情况是，flock在高并发情况绝对会出问题，所以大家都用创建一个文件方式来解决这个问题&#8230;.             

<span class="readmore"><a href="http://www.mikale.org/html/2008/09/68.html" title="is_file比file_exists快N倍的补充">阅读全文——共438字</a></span>]]></description>
		<wfw:commentRss>http://www.mikale.org/html/2008/09/68.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
