<?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://blog.1or9.com/post/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.1or9.com</link>
	<description>人生既不是从选择开始，也不是以选择结束，却在选择中度过。</description>
	<lastBuildDate>Fri, 29 Jan 2010 20:58:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>如何产生既随机又不随机的数据</title>
		<link>http://blog.1or9.com/post/197.html</link>
		<comments>http://blog.1or9.com/post/197.html#comments</comments>
		<pubDate>Sun, 23 Nov 2008 16:21:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[随机数据]]></category>

		<guid isPermaLink="false">http://www.1or9.com/?p=197</guid>
		<description><![CDATA[标题没有写错，的确有这样的需要，至少我碰到了。 首先描述一下我碰到的情况，我的笑话站（xiaohuayoumo.com）使用的是MySQL数据库。其中有一个表alljokes，记录了所有的笑话。我现在想实现的功能是，每天随机的选择出一部分笑话（比如说50个）。要做到这一点是非常容易的，最简单的方法就是“SELECT * from alljokes ORDER BY rand() LIMIT 50”。当然如果alljokes中的数据非常多的话，“ORDER BY rand()”的效率会比较低，网上有很多文章将到如何用其他方法来替代“ORDER BY rand()”。>>> 阅读全文 如何产生既随机又不随机的数据 © 开门, 一或九, 2008. &#124; Permalink &#124; 0 评论 &#124; 添加到 del.icio.us 标签: MySQL, PHP, 随机数据]]></description>
			<content:encoded><![CDATA[<p>标题没有写错，的确有这样的需要，至少我碰到了。</p>
<p>首先描述一下我碰到的情况，我的<a href="http://www.xiaohuayoumo.com" target="_blank">笑话</a>站（xiaohuayoumo.com）使用的是MySQL数据库。其中有一个表alljokes，记录了所有的笑话。我现在想实现的功能是，每天随机的选择出一部分笑话（比如说50个）。要做到这一点是非常容易的，最简单的方法就是“SELECT * from alljokes ORDER BY rand() LIMIT 50”。当然如果alljokes中的数据非常多的话，“ORDER BY rand()”的效率会比较低，网上有很多文章将到如何用其他方法来替代“ORDER BY rand()”。<br />>>> 阅读全文 <a href="http://blog.1or9.com/post/197.html">如何产生既随机又不随机的数据</a></p>
<hr />
<p><small>© 开门, <a href="http://blog.1or9.com">一或九</a>, 2008. |
<a href="http://blog.1or9.com/post/197.html">Permalink</a> |
<a href="http://blog.1or9.com/post/197.html#comments">0 评论</a> |
添加到
<a href="http://del.icio.us/post?url=http://blog.1or9.com/post/197.html&title=如何产生既随机又不随机的数据">del.icio.us</a>
<br/>
标签: <a href="http://blog.1or9.com/post/tag/mysql" rel="tag">MySQL</a>, <a href="http://blog.1or9.com/post/tag/php" rel="tag">PHP</a>, <a href="http://blog.1or9.com/post/tag/%e9%9a%8f%e6%9c%ba%e6%95%b0%e6%8d%ae" rel="tag">随机数据</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.1or9.com/post/197.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache加PHP和IIS加ASP的比较</title>
		<link>http://blog.1or9.com/post/50.html</link>
		<comments>http://blog.1or9.com/post/50.html#comments</comments>
		<pubDate>Tue, 14 Oct 2008 01:04:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[ASP]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.1or9.com/?p=50</guid>
		<description><![CDATA[经个10天的折腾，终于领教了IIS和ASP，实在是不喜欢。 由于这个域名1or9.com目前在Godaddy，而Godaddy提供一个免费的空间。考虑到不用白不用的原则，就把1or9.com的空间转了过去。因为已经有Linux空间（Apache+PHP）,就选择了一个Windows空间（IIS+ASP），另外我还想试试一直想用z-blog系统。没有想到这次转移就是一个恶梦，最终以转回Linux空间而收场。 整个过程中碰到的下面几个问题。>>> 阅读全文 Apache加PHP和IIS加ASP的比较 © 开门, 一或九, 2008. &#124; Permalink &#124; 0 评论 &#124; 添加到 del.icio.us 标签: Apache, ASP, IIS, PHP]]></description>
			<content:encoded><![CDATA[<p>经个10天的折腾，终于领教了IIS和ASP，实在是不喜欢。</p>
<p>由于这个域名1or9.com目前在Godaddy，而Godaddy提供一个免费的空间。考虑到不用白不用的原则，就把1or9.com的空间转了过去。因为已经有Linux空间（Apache+PHP）,就选择了一个Windows空间（IIS+ASP），另外我还想试试一直想用z-blog系统。没有想到这次转移就是一个恶梦，最终以转回Linux空间而收场。</p>
<p><img src="http://static.php.net/www.php.net/images/php.gif" alt="php logo" width="120" height="67"/><img src="http://www.1or9.com/wp-content/uploads/2008/10/logo_apache.gif" alt="" title="logo_apache" width="173" height="64" /></p>
<p>整个过程中碰到的下面几个问题。<br />>>> 阅读全文 <a href="http://blog.1or9.com/post/50.html">Apache加PHP和IIS加ASP的比较</a></p>
<hr />
<p><small>© 开门, <a href="http://blog.1or9.com">一或九</a>, 2008. |
<a href="http://blog.1or9.com/post/50.html">Permalink</a> |
<a href="http://blog.1or9.com/post/50.html#comments">0 评论</a> |
添加到
<a href="http://del.icio.us/post?url=http://blog.1or9.com/post/50.html&title=Apache加PHP和IIS加ASP的比较">del.icio.us</a>
<br/>
标签: <a href="http://blog.1or9.com/post/tag/apache" rel="tag">Apache</a>, <a href="http://blog.1or9.com/post/tag/asp" rel="tag">ASP</a>, <a href="http://blog.1or9.com/post/tag/iis" rel="tag">IIS</a>, <a href="http://blog.1or9.com/post/tag/php" rel="tag">PHP</a><br/>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://blog.1or9.com/post/50.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

