<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[PHP文本数据库的搜索方法]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Tue, 06 Nov 2007 01:42:08 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/><br/>&lt;? <br/><br/>//PHP文本数据库的搜索方法 <br/>searchstr=(&quot;/&quot;.preg_quote($searchstr).&quot;/&quot;); <br/>//$searchstr是查找的关键字 <br/>$records=file($file);//获取所有的记录数 <br/>//$file是查找的数据文件 <br/>$search_reocrds=preg_grep ($searchstr, $records);//开始查找记录 <br/>//$search_reocrds为查找到的记录数 <br/>unset($records); <br/>if($search_records)&#123; <br/>//开始显示记录，写下你自己的处理程序******************** <br/>while (list ($key, $val) = each ( $search_records)) &#123; <br/>echo &quot;$val&quot;; <br/>&#125; <br/>//**************************************************** <br/>&#125; <br/><br/>?&gt;<br/><br/></div><br/>Tags - <a href="http://www.dzhope.com/tags/%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593/" rel="tag">数据库</a> , <a href="http://www.dzhope.com/tags/%25E6%2596%2587%25E6%259C%25AC%25E6%2595%25B0%25E6%258D%25AE%25E5%25BA%2593/" rel="tag">文本数据库</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] PHP文本数据库的搜索方法]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>