<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" 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/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/Arthur1989" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/Arthur1989" type="application/rss+xml"></fs:self_link><lastBuildDate>Thu, 20 Nov 2008 16:13:50 GMT</lastBuildDate><title>Arthur...</title><description>欢迎常来逛逛...</description><link>http://myleave.cn</link><language>en</language><pubDate>Thu, 12 Feb 2009 05:14:18 GMT</pubDate><item><title>旧约 — 创世记(Genesis)–22</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254530/5188178/1/item.html</link><content:encoded>&lt;p&gt;22:1 这些事以后，神要试验亚伯拉罕，就呼叫他说，亚伯拉罕，他说，我在这里。&lt;br /&gt;
And it came to pass after these things, that God did tempt Abraham, and said unto him, Abraham: and he said, Behold, here I am. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:2 神说，你带着你的儿子，就是你独生的儿子，你所爱的以撒，往摩利亚地去，在我所要指示你的山上，把他献为燔祭。&lt;br /&gt;
And he said, Take now thy son, thine only son Isaac, whom thou lovest, and get thee into the land of Moriah; and offer him there for a burnt offering upon one of the mountains which I will tell thee of. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:3 亚伯拉罕清早起来，备上驴，带着两个仆人和他儿子以撒，也劈好了燔祭的柴，就起身往神所指示他的地方去了。&lt;br /&gt;
And Abraham rose up early in the morning, and saddled his ass, and took two of his young men with him, and Isaac his son, and clave the wood for the burnt offering, and rose up, and went unto the place of which God had told him. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:4 到了第三日，亚伯拉罕举目远远地看见那地方。&lt;br /&gt;
Then on the third day Abraham lifted up his eyes, and saw the place afar off. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:5 亚伯拉罕对他的仆人说，你们和驴在此等候，我与童子往那里去拜一拜，就回到你们这里来。&lt;br /&gt;
And Abraham said unto his young men, Abide ye here with the ass; and I and the lad will go yonder and worship, and come again to you. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:6 亚伯拉罕把燔祭的柴放在他儿子以撒身上，自己手里拿着火与刀。于是二人同行。&lt;br /&gt;
And Abraham took the wood of the burnt offering, and laid it upon Isaac his son; and he took the fire in his hand, and a knife; and they went both of them together. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:7 以撒对他父亲亚伯拉罕说，父亲哪，亚伯拉罕说，我儿，我在这里。以撒说，请看，火与柴都有了，但燔祭的羊羔在哪里呢。&lt;br /&gt;
And Isaac spake unto Abraham his father, and said, My father: and he said, Here am I, my son. And he said, Behold the fire and the wood: but where is the lamb for a burnt offering? &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:8 亚伯拉罕说，我儿，神必自己预备作燔祭的羊羔。于是二人同行。&lt;br /&gt;
And Abraham said, My son, God will provide himself a lamb for a burnt offering: so they went both of them together. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:9 他们到了神所指示的地方，亚伯拉罕在那里筑坛，把柴摆好，捆绑他的儿子以撒，放在坛的柴上。&lt;br /&gt;
And they came to the place which God had told him of; and Abraham built an altar there, and laid the wood in order, and bound Isaac his son, and laid him on the altar upon the wood. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:10 亚伯拉罕就伸手拿刀，要杀他的儿子。&lt;br /&gt;
And Abraham stretched forth his hand, and took the knife to slay his son. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:11 耶和华的使者从天上呼叫他说，亚伯拉罕，亚伯拉罕，他说，我在这里。&lt;br /&gt;
And the angel of the LORD called unto him out of heaven, and said, Abraham, Abraham: and he said, Here am I. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:12 天使说，你不可在这童子身上下手。一点不可害他。现在我知道你是敬畏神的了。因为你没有将你的儿子，就是你独生的儿子，留下不给我。&lt;br /&gt;
And he said, Lay not thine hand upon the lad, neither do thou any thing unto him: for now I know that thou fearest God, seeing thou hast not withheld thy son, thine only son from me. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:13 亚伯拉罕举目观看，不料，有一只公羊，两角扣在稠密的小树中，亚伯拉罕就取了那只公羊来，献为燔祭，代替他的儿子。&lt;br /&gt;
And Abraham lifted up his eyes, and looked, and behold behind him a ram caught in a thicket by his horns: and Abraham went and took the ram, and offered him up for a burnt offering in the stead of his son. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:14 亚伯拉罕给那地方起名叫耶和华以勒（就是耶和华必预备），直到今日人还说，在耶和华的山上必有预备。&lt;br /&gt;
And Abraham called the name of that place Jehovahjireh: as it is said to this day, In the mount of the LORD it shall be seen. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:15 耶和华的使者第二次从天上呼叫亚伯拉罕说，&lt;br /&gt;
And the angel of the LORD called unto Abraham out of heaven the second time, &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:16 耶和华说，你既行了这事，不留下你的儿子，就是你独生的儿子，我便指着自己起誓说，&lt;br /&gt;
And said, By myself have I sworn, saith the LORD, for because thou hast done this thing, and hast not withheld thy son, thine only son: &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:17 论福，我必赐大福给你。论子孙，我必叫你的子孙多起来，如同天上的星，海边的沙。你子孙必得着仇敌的城门，&lt;br /&gt;
That in blessing I will bless thee, and in multiplying I will multiply thy seed as the stars of the heaven, and as the sand which is upon the sea shore; and thy seed shall possess the gate of his enemies; &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:18 并且地上万国都必因你的后裔得福，因为你听从了我的话。&lt;br /&gt;
And in thy seed shall all the nations of the earth be blessed; because thou hast obeyed my voice. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:19 于是亚伯拉罕回到他仆人那里，他们一同起身往别是巴去，亚伯拉罕就住在别是巴。&lt;br /&gt;
So Abraham returned unto his young men, and they rose up and went together to Beersheba; and Abraham dwelt at Beersheba. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:20 这事以后，有人告诉亚伯拉罕说，密迦给你兄弟拿鹤生了几个儿子，&lt;br /&gt;
And it came to pass after these things, that it was told Abraham, saying, Behold, Milcah, she hath also born children unto thy brother Nahor; &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:21 长子是乌斯，他的兄弟是布斯和亚兰的父亲基母利，&lt;br /&gt;
Huz his firstborn, and Buz his brother, and Kemuel the father of Aram, &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:22 并基薛，哈琐，必达，益拉，彼土利（彼土利生利百加）。&lt;br /&gt;
And Chesed, and Hazo, and Pildash, and Jidlaph, and Bethuel. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:23 这八个人都是密迦给亚伯拉罕的兄弟拿鹤生的。&lt;br /&gt;
And Bethuel begat Rebekah: these eight Milcah did bear to Nahor, Abraham&amp;#8217;s brother. &lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
22:24 拿鹤的妾名叫流玛，生了提八，迦含，他辖，和玛迦。&lt;br /&gt;
And his concubine, whose name was Reumah, she bare also Tebah, and Gaham, and Thahash, and Maachah.&lt;/p&gt;
&lt;h3&gt;相关文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-21/&quot; title=&quot;旧约 — 创世记(Genesis)–21 &quot;&gt;旧约 — 创世记(Genesis)–21 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-20/&quot; title=&quot;旧约 — 创世记(Genesis)–20&quot;&gt;旧约 — 创世记(Genesis)–20&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-19/&quot; title=&quot;旧约 — 创世记(Genesis)–19&quot;&gt;旧约 — 创世记(Genesis)–19&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-18/&quot; title=&quot;旧约 — 创世记(Genesis)–18&quot;&gt;旧约 — 创世记(Genesis)–18&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-17/&quot; title=&quot;旧约 — 创世记(Genesis)–17&quot;&gt;旧约 — 创世记(Genesis)–17&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-16/&quot; title=&quot;旧约 — 创世记(Genesis)–16&quot;&gt;旧约 — 创世记(Genesis)–16&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-1-2/&quot; title=&quot;旧约 — 创世记(Genesis)–15&quot;&gt;旧约 — 创世记(Genesis)–15&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-13/&quot; title=&quot;旧约 — 创世记(Genesis)–13&quot;&gt;旧约 — 创世记(Genesis)–13&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-12/&quot; title=&quot;旧约 — 创世记(Genesis)–12&quot;&gt;旧约 — 创世记(Genesis)–12&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/genesis-11/&quot; title=&quot;旧约 — 创世记(Genesis)–11&quot;&gt;旧约 — 创世记(Genesis)–11&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fgenesis-22%2F&amp;title=%E6%97%A7%E7%BA%A6+%E2%80%94+%E5%88%9B%E4%B8%96%E8%AE%B0%28Genesis%29%E2%80%9322&amp;description=22%3A1+%E8%BF%99%E4%BA%9B%E4%BA%8B%E4%BB%A5%E5%90%8E%EF%BC%8C%E7%A5%9E%E8%A6%81%E8%AF%95%E9%AA%8C%E4%BA%9A%E4%BC%AF%E6%8B%89%E7%BD%95%EF%BC%8C%E5%B0%B1%E5%91%BC%E5%8F%AB%E4%BB%96%E8%AF%B4%EF%BC%8C%E4%BA%9A%E4%BC%AF%E6%8B%89%E7%BD%95%EF%BC%8C%E4%BB%96%E8%AF%B4%EF%BC%8C%E6%88%91%E5%9C%A8%E8%BF%99%E9%87%8C%E3%80%82%0D%0AAnd+it+came+to+pass+after+these+things%2C+that+God+did+tempt+Abraham%2C+and+said+unto+him%2C+Abraham%3A+and+he+said%2C+Behold%2C+here+I+am.+&amp;tags=Genesis&quot; rel=&quot;2382&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/genesis-22/feed/</wfw:commentRss><description>22:1 这些事以后，神要试验亚伯拉罕，就呼叫他说，亚伯拉罕，他说，我在这里。
And it came to pass after these things, that God did tempt Abraham, and said unto him, Abraham: and he said, Behold, here I am.</description><category>双语圣经</category><category>Genesis</category><pubDate>Fri, 21 Nov 2008 00:13:50 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/genesis-22/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2382</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/genesis-22/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254530/5188178</fs:itemid></item><item><title>塞上曲 王昌龄</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254531/5188178/1/item.html</link><content:encoded>&lt;p&gt;蝉鸣空桑林， 八月萧关道。&lt;br /&gt;
出塞复入塞， 处处黄芦草。&lt;br /&gt;
从来幽并客， 皆向沙场老。&lt;br /&gt;
莫学游侠儿， 矜夸紫骝好。&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
Cicadas complain of thin mulberry-trees &lt;br /&gt;
In the Eighth-month chill at the frontier pass. &lt;br /&gt;
Through the gate and back again, all along the road, &lt;br /&gt;
There is nothing anywhere but yellow reeds and grasses &lt;br /&gt;
And the bones of soldiers from You and from Bing &lt;br /&gt;
Who have buried their lives in the dusty sand. &lt;br /&gt;
&amp;#8230;Let never a cavalier stir you to envy &lt;br /&gt;
With boasts of his horse and his horsemanship &lt;/p&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/07/rafael-nadal-parera/&quot; title=&quot;拉菲尔·纳达尔&quot;&gt;拉菲尔·纳达尔&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/when-you-believe/&quot; title=&quot;when you believe&quot;&gt;when you believe&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/who-should-spend-more-effort/&quot; title=&quot;男单首周综述：费纳德谁更辛苦 16强奏响青春旋律&quot;&gt;男单首周综述：费纳德谁更辛苦 16强奏响青春旋律&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/07/how-we-get-alone/&quot; title=&quot;人之相与，长仰不俯&quot;&gt;人之相与，长仰不俯&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/sql-gradual-15-in-between-conditions-and-the-operator/&quot; title=&quot;SQL循序渐进(15)IN 和 BETWEEN 条件运算符&quot;&gt;SQL循序渐进(15)IN 和 BETWEEN 条件运算符&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/seeing-li-bai-in-a-dream-i/&quot; title=&quot;梦李白（之一）&amp;#8211;杜甫&quot;&gt;梦李白（之一）&amp;#8211;杜甫&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/07/solomon-knows-nothing/&quot; title=&quot;圣心无知[摘]&quot;&gt;圣心无知[摘]&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/spring/&quot; title=&quot;Spring 春天&quot;&gt;Spring 春天&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/october-third/&quot; title=&quot;October third&quot;&gt;October third&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/tagore-9/&quot; title=&quot;泰戈尔散文100篇 （九） &quot;&gt;泰戈尔散文100篇 （九） &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fat-a-border-fortress%2F&amp;title=%E5%A1%9E%E4%B8%8A%E6%9B%B2+%E7%8E%8B%E6%98%8C%E9%BE%84&amp;description=%E8%9D%89%E9%B8%A3%E7%A9%BA%E6%A1%91%E6%9E%97%EF%BC%8C+%E5%85%AB%E6%9C%88%E8%90%A7%E5%85%B3%E9%81%93%E3%80%82%0D%0A%E5%87%BA%E5%A1%9E%E5%A4%8D%E5%85%A5%E5%A1%9E%EF%BC%8C+%E5%A4%84%E5%A4%84%E9%BB%84%E8%8A%A6%E8%8D%89%E3%80%82%0D%0A%E4%BB%8E%E6%9D%A5%E5%B9%BD%E5%B9%B6%E5%AE%A2%EF%BC%8C+%E7%9A%86%E5%90%91%E6%B2%99%E5%9C%BA%E8%80%81%E3%80%82%0D%0A%E8%8E%AB%E5%AD%A6%E6%B8%B8%E4%BE%A0%E5%84%BF%EF%BC%8C+%E7%9F%9C%E5%A4%B8%E7%B4%AB%E9%AA%9D%E5%A5%BD%E3%80%82&amp;tags=&quot; rel=&quot;2379&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/at-a-border-fortress/feed/</wfw:commentRss><description>蝉鸣空桑林， 八月萧关道。
出塞复入塞， 处处黄芦草。
从来幽并客， 皆向沙场老。
莫学游侠儿， 矜夸紫骝好。</description><category>双语诗词</category><pubDate>Fri, 21 Nov 2008 00:10:42 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/at-a-border-fortress/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2379</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/at-a-border-fortress/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254531/5188178</fs:itemid></item><item><title>溪居 柳宗元</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254532/5188178/1/item.html</link><content:encoded>&lt;p&gt;久为簪组累， 幸此南夷谪。&lt;br /&gt;
闲依农圃邻， 偶似山林客。&lt;br /&gt;
晓耕翻露草， 夜榜响溪石。&lt;br /&gt;
来往不逢人， 长歌楚天碧。&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
I had so long been troubled by official hat and robe &lt;br /&gt;
That I am glad to be an exile here in this wild southland. &lt;br /&gt;
I am a neighbour now of planters and reapers. &lt;br /&gt;
I am a guest of the mountains and woods. &lt;br /&gt;
I plough in the morning, turning dewy grasses, &lt;br /&gt;
And at evening tie my fisher-boat, breaking the quiet stream. &lt;br /&gt;
Back and forth I go, scarcely meeting anyone, &lt;br /&gt;
And sing a long poem and gaze at the blue sky.&lt;/p&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/another-kind-of-love/&quot; title=&quot;另一种爱&quot;&gt;另一种爱&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/route-set-up-by-linux/&quot; title=&quot;用Linux操作系统构建的路由器&quot;&gt;用Linux操作系统构建的路由器&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-13/&quot; title=&quot;旧约 — 创世记(Genesis)–13&quot;&gt;旧约 — 创世记(Genesis)–13&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/capturing-the-ringleader-first-in-order-to-capture-all-the-followers/&quot; title=&quot;第十八计 擒贼擒王 &quot;&gt;第十八计 擒贼擒王 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/detour-to-romance/&quot; title=&quot;浪漫路曲曲折折&quot;&gt;浪漫路曲曲折折&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/08/my-first-job/&quot; title=&quot;谁炒了我的第一份工作&quot;&gt;谁炒了我的第一份工作&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/presenting-a-bold-front-to-conceal-unpreparedness/&quot; title=&quot;第三十二计 空城计&quot;&gt;第三十二计 空城计&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/07/swam/&quot; title=&quot;昨天去游泳&quot;&gt;昨天去游泳&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/06/wonderful-love-letter/&quot; title=&quot;一封绝妙的情书&quot;&gt;一封绝妙的情书&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/php/&quot; title=&quot;第三节：PHP入门篇&quot;&gt;第三节：PHP入门篇&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fdwelling-by-a-stream%2F&amp;title=%E6%BA%AA%E5%B1%85+%E6%9F%B3%E5%AE%97%E5%85%83&amp;description=%E4%B9%85%E4%B8%BA%E7%B0%AA%E7%BB%84%E7%B4%AF%EF%BC%8C+%E5%B9%B8%E6%AD%A4%E5%8D%97%E5%A4%B7%E8%B0%AA%E3%80%82%0D%0A%E9%97%B2%E4%BE%9D%E5%86%9C%E5%9C%83%E9%82%BB%EF%BC%8C+%E5%81%B6%E4%BC%BC%E5%B1%B1%E6%9E%97%E5%AE%A2%E3%80%82%0D%0A%E6%99%93%E8%80%95%E7%BF%BB%E9%9C%B2%E8%8D%89%EF%BC%8C+%E5%A4%9C%E6%A6%9C%E5%93%8D%E6%BA%AA%E7%9F%B3%E3%80%82%0D%0A%E6%9D%A5%E5%BE%80%E4%B8%8D%E9%80%A2%E4%BA%BA%EF%BC%8C+%E9%95%BF%E6%AD%8C%E6%A5%9A%E5%A4%A9%E7%A2%A7%E3%80%82&amp;tags=&quot; rel=&quot;2376&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/dwelling-by-a-stream/feed/</wfw:commentRss><description>久为簪组累， 幸此南夷谪。
闲依农圃邻， 偶似山林客。
晓耕翻露草， 夜榜响溪石。
来往不逢人， 长歌楚天碧。</description><category>双语诗词</category><pubDate>Fri, 21 Nov 2008 00:09:12 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/dwelling-by-a-stream/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2376</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/dwelling-by-a-stream/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254532/5188178</fs:itemid></item><item><title>November 21st</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254533/5188178/1/item.html</link><content:encoded>&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;em&gt;&lt;strong&gt;Today&amp;#8217;s                 Highlight in History: &lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;On November 21st, 1789, North                 Carolina became the 12th state to ratify the US                 Constitution. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;em&gt;&lt;strong&gt;On this date: &lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;In 1877, inventor &lt;/font&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot; color=&quot;#000080&quot;&gt;&lt;strong&gt;Thomas                 A. Edison&lt;/strong&gt;&lt;/font&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt; announced the invention of his                 phonograph. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;In 1899, Vice                 President Garret A. Hobart, serving under                 President McKinley, died in Paterson, New Jersey,                 at age 55. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;In 1922, Rebecca                 L. Felton of Georgia was sworn in as the first                 woman to serve in the US Senate. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;In 1942, the                 Alaska highway across Canada was formally opened.                 &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;In 1964, New                 York&amp;#8217;s Verrazano Narrows Bridge opened. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;In 1969, the                 Senate voted down the Supreme Court nomination of                 Clement F. Haynsworth, the first such rejection                 since 1930. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;In 1973, President                 Nixon&amp;#8217;s attorney, J. Fred Buzhardt, revealed the                 existence of an 18.5-minute gap in one of the                 White House tape recordings related to Watergate.                 &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;In 1979, a mob                 attacked the US Embassy in Islamabad, Pakistan,                 killing two Americans. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;In 1980,                 eighty-seven people died in a fire at the MGM                 Grand Hotel-Casino in Las Vegas, Nevada. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;In 1980, an                 estimated 83 million TV viewers tuned in to the                 CBS prime-time soap opera &amp;quot;Dallas&amp;quot; to                 find out &amp;quot;who shot J.R.&amp;quot; (It turned out                 to be Kristin Shephard, played by Mary Crosby.) &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;Ten years ago:                 President Bush arrived in Saudi Arabia, where he                 conferred with Saudi King Fahd and Kuwait&amp;#8217;s                 exiled emir. Junk-bond financier Michael R.                 Milken, who had pleaded guilty to six felony                 counts, was sentenced by a federal judge in New                 York to ten years in prison (Milken served two). &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;Five years ago:                 Balkan leaders meeting in Dayton, Ohio, initialed                 a peace plan to end three and a-half years of                 ethnic fighting in Bosnia-Herzegovina. France                 detonated a fourth underground nuclear blast at                 its test site in the South Pacific. The Dow Jones                 industrial average closed above the five-thousand                 mark for the first time. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;One year ago:                 President Clinton, speaking at a conference in                 Florence, Italy, called on prosperous nations to                 spread global wealth by helping poor countries                 with Internet hookups, cell phones, debt relief                 and small loans. China completed its first                 unmanned test of a spacecraft meant to carry                 astronauts. Quentin Crisp, the eccentric writer,                 performer and raconteur best-known for his                 autobiography &amp;quot;The Naked Civil                 Servant,&amp;quot; died in Manchester, England, at                 age 90. &lt;/font&gt;&lt;/p&gt;
&lt;hr size=&quot;1&quot; noshade=&quot;noshade&quot; /&gt;
&lt;p align=&quot;center&quot;&gt;&lt;font face=&quot;Arial&quot;&gt;&lt;span class=&quot;thought&quot;&gt;每日格言&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size=&quot;3&quot; face=&quot;Arial&quot;&gt;&lt;strong&gt;&amp;quot;&lt;/strong&gt;&lt;/font&gt;&lt;font size=&quot;2&quot; face=&quot;Arial&quot;&gt;&lt;strong&gt;A concept is                 stronger than a fact.&amp;quot; &lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;right&quot;&gt;&lt;font size=&quot;1&quot; face=&quot;Arial&quot;&gt;&lt;em&gt;&amp;#8211;                 Charlotte P. Gilman, American lecturer and author                 (1860-1935). &lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/life-together/&quot; title=&quot;Life Together &quot;&gt;Life Together &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/4-methods-for-screenshoting/&quot; title=&quot;Ubuntu下截图四法&quot;&gt;Ubuntu下截图四法&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/c-based-second-language-1/&quot; title=&quot;C语言基础 第一讲&quot;&gt;C语言基础 第一讲&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/07/moral-intelligence/&quot; title=&quot;道德经&quot;&gt;道德经&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/watching-a-fire-from-the-other-side-of-the-river/&quot; title=&quot;第九计 隔岸观火&quot;&gt;第九计 隔岸观火&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/07/9-reasons-losing-search-engine-rankings/&quot; title=&quot;九大常见原因让博客失去在搜索引擎里面的排名&quot;&gt;九大常见原因让博客失去在搜索引擎里面的排名&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/november-14th/&quot; title=&quot;November 14th&quot;&gt;November 14th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/14-points-when-optimize/&quot; title=&quot;网站优化的14点重要的事项&quot;&gt;网站优化的14点重要的事项&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/conquer-php-and-mysql-in-3days/&quot; title=&quot;PHP/MySQL三日通 第一天&quot;&gt;PHP/MySQL三日通 第一天&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/august-17th/&quot; title=&quot;August 17th&quot;&gt;August 17th&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fnovember-21st%2F&amp;title=November+21st&amp;description=Today%27s+Highlight+in+History%3A%0D%0AOn+November+21st%2C+1789%2C+North+Carolina+became+the+12th+state+to+ratify+the+US+Constitution.+&amp;tags=&quot; rel=&quot;2374&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/november-21st/feed/</wfw:commentRss><description>Today's Highlight in History:
On November 21st, 1789, North Carolina became the 12th state to ratify the US Constitution.</description><category>历史上的今天</category><pubDate>Fri, 21 Nov 2008 00:08:08 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/november-21st/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2374</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/november-21st/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254533/5188178</fs:itemid></item><item><title>旧约 — 创世记(Genesis)–21</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254534/5188178/1/item.html</link><content:encoded>&lt;p&gt;21:1 耶和华按着先前的话眷顾撒拉，便照他所说的给撒拉成就。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And the LORD visited Sarah as he had said, and the LORD did unto Sarah as he had spoken.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:2 当亚伯拉罕年老的时候，撒拉怀了孕。到神所说的日期，就给亚伯拉罕生了一个儿子。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For Sarah conceived, and bare Abraham a son in his old age, at the set time of which God had spoken to him.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:3 亚伯拉罕给撒拉所生的儿子起名叫以撒。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abraham called the name of his son that was born unto him, whom Sarah bare to him, Isaac.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:4 以撒生下来第八日，亚伯拉罕照着神所吩咐的，给以撒行了割礼。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abraham circumcised his son Isaac being eight days old, as God had commanded him.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:5 他儿子以撒生的时候，亚伯拉罕年一百岁。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abraham was an hundred years old, when his son Isaac was born unto him.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:6 撒拉说，神使我喜笑，凡听见的必与我一同喜笑。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Sarah said, God hath made me to laugh, so that all that hear will laugh with me.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:7 又说，谁能预先对亚伯拉罕说撒拉要乳养婴孩呢，因为在他年老的时候，我给他生了一个儿子。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And she said, Who would have said unto Abraham, that Sarah should have given children suck? for I have born him a son in his old age.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:8 孩子渐长，就断了奶。以撒断奶的日子，亚伯拉罕设摆丰盛的筵席。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And the child grew, and was weaned: and Abraham made a great feast the same day that Isaac was weaned.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:9 当时，撒拉看见埃及人夏甲给亚伯拉罕所生的儿子戏笑，&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Sarah saw the son of Hagar the Egyptian, which she had born unto Abraham, mocking.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:10 就对亚伯拉罕说，你把这使女和她儿子赶出去，因为这使女的儿子不可与我的儿子以撒一同承受产业。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Wherefore she said unto Abraham, Cast out this bondwoman and her son: for the son of this bondwoman shall not be heir with my son, even with Isaac.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:11 亚伯拉罕因他儿子的缘故很忧愁。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And the thing was very grievous in Abraham&amp;#8217;s sight because of his son.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:12 神对亚伯拉罕说，你不必为这童子和你的使女忧愁。凡撒拉对你说的话，你都该听从。因为从以撒生的，才要称为你的后裔。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And God said unto Abraham, Let it not be grievous in thy sight because of the lad, and because of thy bondwoman; in all that Sarah hath said unto thee, hearken unto her voice; for in Isaac shall thy seed be called.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:13 至于使女的儿子，我也必使他的后裔成立一国，因为他是你所生的。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And also of the son of the bondwoman will I make a nation, because he is thy seed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:14 亚伯拉罕清早起来，拿饼和一皮袋水，给了夏甲，搭在她的肩上，又把孩子交给她打发她走。夏甲就走了，在别是巴的旷野走迷了路。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abraham rose up early in the morning, and took bread, and a bottle of water, and gave it unto Hagar, putting it on her shoulder, and the child, and sent her away: and she departed, and wandered in the wilderness of Beersheba.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:15 皮袋的水用尽了，夏甲就把孩子撇在小树底下，&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And the water was spent in the bottle, and she cast the child under one of the shrubs.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:16 自己走开约有一箭之远，相对而坐，说，我不忍见孩子死，就相对而坐，放声大哭。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And she went, and sat her down over against him a good way off, as it were a bow shot: for she said, Let me not see the death of the child. And she sat over against him, and lift up her voice, and wept.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:17 神听见童子的声音。神的使者从天上呼叫夏甲说，夏甲，你为何这样呢，不要害怕，神已经听见童子的声音了。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And God heard the voice of the lad; and the angel of God called to Hagar out of heaven, and said unto her, What aileth thee, Hagar? fear not; for God hath heard the voice of the lad where he is.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:18 起来，把童子抱在怀中（怀原文作手），我必使他的后裔成为大国。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Arise, lift up the lad, and hold him in thine hand; for I will make him a great nation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:19 神使夏甲的眼睛明亮，她就看见一口水井，便去将皮袋盛满了水，给童子喝。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And God opened her eyes, and she saw a well of water; and she went, and filled the bottle with water, and gave the lad drink.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:20 神保佑童子，他就渐长，住在旷野，成了弓箭手。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And God was with the lad; and he grew, and dwelt in the wilderness, and became an archer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:21 他住在巴兰的旷野。他母亲从埃及地给他娶了一个妻子。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And he dwelt in the wilderness of Paran: and his mother took him a wife out of the land of Egypt.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:22 当那时候，亚比米勒同他军长非各对亚伯拉罕说，凡你所行的事都有神的保佑。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And it came to pass at that time, that Abimelech and Phichol the chief captain of his host spake unto Abraham, saying, God is with thee in all that thou doest:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:23 我愿你如今在这里指着神对我起誓，不要欺负我与我的儿子，并我的子孙。我怎样厚待了你，你也要照样厚待我与你所寄居这地的民。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now therefore swear unto me here by God that thou wilt not deal falsely with me, nor with my son, nor with my son&amp;#8217;s son: but according to the kindness that I have done unto thee, thou shalt do unto me, and to the land wherein thou hast sojourned.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:24 亚伯拉罕说，我情愿起誓。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abraham said, I will swear.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:25 从前，亚比米勒的仆人霸占了一口水井，亚伯拉罕为这事指责亚比米勒。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abraham reproved Abimelech because of a well of water, which Abimelech&amp;#8217;s servants had violently taken away.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:26 亚比米勒说，谁作这事，我不知道，你也没有告诉我，今日我才听见了。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abimelech said, I wot not who hath done this thing: neither didst thou tell me, neither yet heard I of it, but to day.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:27 亚伯拉罕把羊和牛给了亚比米勒，二人就彼此立约。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abraham took sheep and oxen, and gave them unto Abimelech; and both of them made a covenant.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:28 亚伯拉罕把七只母羊羔另放在一处。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abraham set seven ewe lambs of the flock by themselves.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:29 亚比米勒问亚伯拉罕说，你把这七只母羊羔另放在一处，是什么意思呢。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abimelech said unto Abraham, What mean these seven ewe lambs which thou hast set by themselves?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:30 他说，你要从我手里受这七只母羊羔，作我挖这口井的证据。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And he said, For these seven ewe lambs shalt thou take of my hand, that they may be a witness unto me, that I have digged this well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:31 所以他给那地方起名叫别是巴（就是盟誓的井），因为他们二人在那里起了誓。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Wherefore he called that place Beersheba; because there they sware both of them.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:32 他们在别是巴立了约，亚比米勒就同他军长非各起身回非利士地去了。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thus they made a covenant at Beersheba: then Abimelech rose up, and Phichol the chief captain of his host, and they returned into the land of the Philistines.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:33 亚伯拉罕在别是巴栽上一棵垂丝柳树，又在那里求告耶和华永生神的名。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abraham planted a grove in Beersheba, and called there on the name of the LORD, the everlasting God.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;21:34 亚伯拉罕在非利士人的地寄居了多日。&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And Abraham sojourned in the Philistines&amp;#8217; land many days.&lt;/p&gt;
&lt;p&gt;&lt;br type=&quot;_moz&quot; /&gt;&lt;br /&gt;
&lt;h3&gt;相关文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-20/&quot; title=&quot;旧约 — 创世记(Genesis)–20&quot;&gt;旧约 — 创世记(Genesis)–20&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-22/&quot; title=&quot;旧约 — 创世记(Genesis)–22&quot;&gt;旧约 — 创世记(Genesis)–22&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-19/&quot; title=&quot;旧约 — 创世记(Genesis)–19&quot;&gt;旧约 — 创世记(Genesis)–19&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-18/&quot; title=&quot;旧约 — 创世记(Genesis)–18&quot;&gt;旧约 — 创世记(Genesis)–18&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-17/&quot; title=&quot;旧约 — 创世记(Genesis)–17&quot;&gt;旧约 — 创世记(Genesis)–17&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-16/&quot; title=&quot;旧约 — 创世记(Genesis)–16&quot;&gt;旧约 — 创世记(Genesis)–16&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-1-2/&quot; title=&quot;旧约 — 创世记(Genesis)–15&quot;&gt;旧约 — 创世记(Genesis)–15&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-13/&quot; title=&quot;旧约 — 创世记(Genesis)–13&quot;&gt;旧约 — 创世记(Genesis)–13&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-12/&quot; title=&quot;旧约 — 创世记(Genesis)–12&quot;&gt;旧约 — 创世记(Genesis)–12&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/genesis-11/&quot; title=&quot;旧约 — 创世记(Genesis)–11&quot;&gt;旧约 — 创世记(Genesis)–11&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fgenesis-21%2F&amp;title=%E6%97%A7%E7%BA%A6+%E2%80%94+%E5%88%9B%E4%B8%96%E8%AE%B0%28Genesis%29%E2%80%9321&amp;description=21%3A1+%E8%80%B6%E5%92%8C%E5%8D%8E%E6%8C%89%E7%9D%80%E5%85%88%E5%89%8D%E7%9A%84%E8%AF%9D%E7%9C%B7%E9%A1%BE%E6%92%92%E6%8B%89%EF%BC%8C%E4%BE%BF%E7%85%A7%E4%BB%96%E6%89%80%E8%AF%B4%E7%9A%84%E7%BB%99%E6%92%92%E6%8B%89%E6%88%90%E5%B0%B1%E3%80%82%0D%0AAnd+the+LORD+visited+Sarah+as+he+had+said%2C+and+the+LORD+did+unto+Sarah+as+he+had+spoken.+&amp;tags=Genesis%2C%E5%9C%A3%E7%BB%8F&quot; rel=&quot;2366&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/genesis-21/feed/</wfw:commentRss><description>21:1 耶和华按着先前的话眷顾撒拉，便照他所说的给撒拉成就。
And the LORD visited Sarah as he had said, and the LORD did unto Sarah as he had spoken.</description><category>圣经</category><category>双语圣经</category><category>Genesis</category><pubDate>Tue, 18 Nov 2008 00:31:07 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/genesis-21/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2366</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/genesis-21/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254534/5188178</fs:itemid></item><item><title>晨诣超师院读禅经 柳宗元</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254535/5188178/1/item.html</link><content:encoded>&lt;p&gt;汲井漱寒齿， 清心拂尘服。&lt;/p&gt;
&lt;p&gt;闲持贝叶书， 步出东斋读。&lt;/p&gt;
&lt;p&gt;真源了无取， 忘迹世所逐。&lt;/p&gt;
&lt;p&gt;遗言冀可冥， 缮性何由熟。&lt;/p&gt;
&lt;p&gt;道人庭宇静， 苔色连深竹。&lt;/p&gt;
&lt;p&gt;日出雾露余， 青松如膏沐。&lt;/p&gt;
&lt;p&gt;澹然离言说， 悟悦心自足。&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I clean my teeth in water drawn from a cold well;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And while I brush my clothes, I purify my mind;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then, slowly turning pages in the Tree-Leaf Book,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I recite, along the path to the eastern shelter.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;hellip;The world has forgotten the true fountain of this teaching&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And people enslave themselves to miracles and fables.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Under the given words I want the essential meaning,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I look for the simplest way to sow and reap my nature.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here in the quiet of the priest&amp;#8217;s templecourtyard,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Mosses add their climbing colour to the thick bamboo;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And now comes the sun, out of mist and fog,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And pines that seem to be new-bathed;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And everything is gone from me, speech goes, and reading,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Leaving the single unison.&lt;/p&gt;
&lt;h3&gt;相关文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/to-my-daughter-on-her-marriage-into-the-yang-family/&quot; title=&quot;送杨氏女 韦应物 &quot;&gt;送杨氏女 韦应物 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/east-of-the-town/&quot; title=&quot;东郊 韦应物 &quot;&gt;东郊 韦应物 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/mooring-at-twilight-in-yuyi-district/&quot; title=&quot;夕次盱眙县 韦应物 &quot;&gt;夕次盱眙县 韦应物 &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Freading-buddhist-classics-with-zhao-at-his-temple-in-the-early-morning%2F&amp;title=%E6%99%A8%E8%AF%A3%E8%B6%85%E5%B8%88%E9%99%A2%E8%AF%BB%E7%A6%85%E7%BB%8F+%E6%9F%B3%E5%AE%97%E5%85%83&amp;description=%E6%B1%B2%E4%BA%95%E6%BC%B1%E5%AF%92%E9%BD%BF%EF%BC%8C+%E6%B8%85%E5%BF%83%E6%8B%82%E5%B0%98%E6%9C%8D%E3%80%82%0D%0A%E9%97%B2%E6%8C%81%E8%B4%9D%E5%8F%B6%E4%B9%A6%EF%BC%8C+%E6%AD%A5%E5%87%BA%E4%B8%9C%E6%96%8B%E8%AF%BB%E3%80%82%0D%0A%E7%9C%9F%E6%BA%90%E4%BA%86%E6%97%A0%E5%8F%96%EF%BC%8C+%E5%BF%98%E8%BF%B9%E4%B8%96%E6%89%80%E9%80%90%E3%80%82%0D%0A%E9%81%97%E8%A8%80%E5%86%80%E5%8F%AF%E5%86%A5%EF%BC%8C+%E7%BC%AE%E6%80%A7%E4%BD%95%E7%94%B1%E7%86%9F%E3%80%82%0D%0A%E9%81%93%E4%BA%BA%E5%BA%AD%E5%AE%87%E9%9D%99%EF%BC%8C+%E8%8B%94%E8%89%B2%E8%BF%9E%E6%B7%B1%E7%AB%B9%E3%80%82%0D%0A%E6%97%A5%E5%87%BA%E9%9B%BE%E9%9C%B2%E4%BD%99%EF%BC%8C+%E9%9D%92%E6%9D%BE%E5%A6%82%E8%86%8F%E6%B2%90%E3%80%82%0D%0A%E6%BE%B9%E7%84%B6%E7%A6%BB%E8%A8%80%E8%AF%B4%EF%BC%8C+%E6%82%9F%E6%82%A6%E5%BF%83%E8%87%AA%E8%B6%B3%E3%80%82+&amp;tags=%E8%AF%97%E8%AF%8D&quot; rel=&quot;2363&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/reading-buddhist-classics-with-zhao-at-his-temple-in-the-early-morning/feed/</wfw:commentRss><description>汲井漱寒齿， 清心拂尘服。
闲持贝叶书， 步出东斋读。
真源了无取， 忘迹世所逐。
遗言冀可冥， 缮性何由熟。
道人庭宇静， 苔色连深竹。
日出雾露余， 青松如膏沐。
澹然离言说， 悟悦心自足。</description><category>诗词</category><category>双语诗词</category><pubDate>Tue, 18 Nov 2008 00:28:31 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/reading-buddhist-classics-with-zhao-at-his-temple-in-the-early-morning/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2363</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/reading-buddhist-classics-with-zhao-at-his-temple-in-the-early-morning/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254535/5188178</fs:itemid></item><item><title>送杨氏女 韦应物</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254536/5188178/1/item.html</link><content:encoded>&lt;p&gt;永日方戚戚， 出行复悠悠。&lt;/p&gt;
&lt;p&gt;女子今有行， 大江溯轻舟。&lt;/p&gt;
&lt;p&gt;尔辈苦无恃， 抚念益慈柔。&lt;/p&gt;
&lt;p&gt;幼为长所育， 两别泣不休。&lt;/p&gt;
&lt;p&gt;对此结中肠， 义往难复留。&lt;/p&gt;
&lt;p&gt;自小阙内训， 事姑贻我忧。&lt;/p&gt;
&lt;p&gt;赖兹托令门， 仁恤庶无尤。&lt;/p&gt;
&lt;p&gt;贫俭诚所尚， 资从岂待周。&lt;/p&gt;
&lt;p&gt;孝恭遵妇道， 容止顺其猷。&lt;/p&gt;
&lt;p&gt;别离在今晨， 见尔当何秋。&lt;/p&gt;
&lt;p&gt;居闲始自遣， 临感忽难收。&lt;/p&gt;
&lt;p&gt;归来视幼女， 零泪缘缨流。&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My heart has been heavy all day long&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Because you have so far to go.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The marriage of a girl, away from her parents,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is the launching of a little boat on a great river.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;hellip;You were very young when your mother died,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which made me the more tender of you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Your elder sister has looked out for you,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And now you are both crying and cannot part.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This makes my grief the harder to bear;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yet it is right that you should go.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;hellip;Having had from childhood no mother to guide you,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How will you honour your mother-in-law?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#8217;s an excellent family; they will be kind to you,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;They will forgive you your mistakes &amp;#8211;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Although ours has been so pure and poor&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That you can take them no great dowry.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Be gentle and respectful, as a woman should be,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Careful of word and look, observant of good example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;hellip;After this morning we separate,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There&amp;#8217;s no knowing for how long&amp;hellip;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I always try to hide my feelings &amp;#8211;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;They are suddenly too much for me,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I turn and see my younger daughter&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With the tears running down her cheek.&lt;/p&gt;
&lt;h3&gt;相关文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/reading-buddhist-classics-with-zhao-at-his-temple-in-the-early-morning/&quot; title=&quot;晨诣超师院读禅经 柳宗元 &quot;&gt;晨诣超师院读禅经 柳宗元 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/east-of-the-town/&quot; title=&quot;东郊 韦应物 &quot;&gt;东郊 韦应物 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/mooring-at-twilight-in-yuyi-district/&quot; title=&quot;夕次盱眙县 韦应物 &quot;&gt;夕次盱眙县 韦应物 &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fto-my-daughter-on-her-marriage-into-the-yang-family%2F&amp;title=%E9%80%81%E6%9D%A8%E6%B0%8F%E5%A5%B3+%E9%9F%A6%E5%BA%94%E7%89%A9&amp;description=%E6%B0%B8%E6%97%A5%E6%96%B9%E6%88%9A%E6%88%9A%EF%BC%8C+%E5%87%BA%E8%A1%8C%E5%A4%8D%E6%82%A0%E6%82%A0%E3%80%82%0D%0A%E5%A5%B3%E5%AD%90%E4%BB%8A%E6%9C%89%E8%A1%8C%EF%BC%8C+%E5%A4%A7%E6%B1%9F%E6%BA%AF%E8%BD%BB%E8%88%9F%E3%80%82%0D%0A%E5%B0%94%E8%BE%88%E8%8B%A6%E6%97%A0%E6%81%83%EF%BC%8C+%E6%8A%9A%E5%BF%B5%E7%9B%8A%E6%85%88%E6%9F%94%E3%80%82%0D%0A%E5%B9%BC%E4%B8%BA%E9%95%BF%E6%89%80%E8%82%B2%EF%BC%8C+%E4%B8%A4%E5%88%AB%E6%B3%A3%E4%B8%8D%E4%BC%91%E3%80%82%0D%0A%E5%AF%B9%E6%AD%A4%E7%BB%93%E4%B8%AD%E8%82%A0%EF%BC%8C+%E4%B9%89%E5%BE%80%E9%9A%BE%E5%A4%8D%E7%95%99%E3%80%82%0D%0A%E8%87%AA%E5%B0%8F%E9%98%99%E5%86%85%E8%AE%AD%EF%BC%8C+%E4%BA%8B%E5%A7%91%E8%B4%BB%E6%88%91%E5%BF%A7%E3%80%82%0D%0A%E8%B5%96%E5%85%B9%E6%89%98%E4%BB%A4%E9%97%A8%EF%BC%8C+%E4%BB%81%E6%81%A4%E5%BA%B6%E6%97%A0%E5%B0%A4%E3%80%82%0D%0A%E8%B4%AB%E4%BF%AD%E8%AF%9A%E6%89%80%E5%B0%9A%EF%BC%8C+%E8%B5%84%E4%BB%8E%E5%B2%82%E5%BE%85%E5%91%A8%E3%80%82%0D%0A%E5%AD%9D%E6%81%AD%E9%81%B5%E5%A6%87%E9%81%93%EF%BC%8C+%E5%AE%B9%E6%AD%A2%E9%A1%BA%E5%85%B6%E7%8C%B7%E3%80%82%0D%0A%E5%88%AB%E7%A6%BB%E5%9C%A8%E4%BB%8A%E6%99%A8%EF%BC%8C+%E8%A7%81%E5%B0%94%E5%BD%93%E4%BD%95%E7%A7%8B%E3%80%82%0D%0A%E5%B1%85%E9%97%B2%E5%A7%8B%E8%87%AA%E9%81%A3%EF%BC%8C+%E4%B8%B4%E6%84%9F%E5%BF%BD%E9%9A%BE%E6%94%B6%E3%80%82%0D%0A%E5%BD%92%E6%9D%A5%E8%A7%86%E5%B9%BC%E5%A5%B3%EF%BC%8C+%E9%9B%B6%E6%B3%AA%E7%BC%98%E7%BC%A8%E6%B5%81%E3%80%82+&amp;tags=%E8%AF%97%E8%AF%8D&quot; rel=&quot;2360&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/to-my-daughter-on-her-marriage-into-the-yang-family/feed/</wfw:commentRss><description>永日方戚戚， 出行复悠悠。
女子今有行， 大江溯轻舟。
尔辈苦无恃， 抚念益慈柔。
幼为长所育， 两别泣不休。
对此结中肠， 义往难复留。
自小阙内训， 事姑贻我忧。
赖兹托令门， 仁恤庶无尤。
贫俭诚所尚， 资从岂待周。
孝恭遵妇道， 容止顺其猷。
别离在今晨， 见尔当何秋。
居闲始自遣， 临感忽难收。
归来视幼女， 零泪缘缨流。</description><category>诗词</category><category>双语诗词</category><pubDate>Tue, 18 Nov 2008 00:27:24 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/to-my-daughter-on-her-marriage-into-the-yang-family/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2360</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/to-my-daughter-on-her-marriage-into-the-yang-family/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254536/5188178</fs:itemid></item><item><title>PHP、MySQL教程（十）</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254537/5188178/1/item.html</link><content:encoded>&lt;p&gt;PHP功能的强大首先在于它的大量的内置函数库，它可以让初学者也能执行许多复杂的任务，而不必安装新的库和关心底层的详细情况，而这恰恰是其它流行的诸 如Perl这样的客户端语言所不具备的。由于这个教程的限制，我们仅仅学习了一些与MySQL数据库相关的一些函数(事实上，即使是这种函数，我们也没有 学全)。在这最后的部分，我们会稍微扩大一下范围来看看其它对于建立一个数据库驱动的网站有用的PHP的特征。&lt;/p&gt;
&lt;p&gt;　　我们首先将学习PHP的include函数，使用这个函数，我们可以在许多页面中重复使用同一个PHP代码段。我们还看到如何利用这个函数提高我们的网站的安全性。&lt;/p&gt;
&lt;p&gt;　　虽然PHP一般是相当快速和有效率的，但是它会加重服务器的运行时间和工作量。对于一个高流量的站点来说，这种负担可能会达到无法接受的程度。 但是这并不意味着我们需要放弃我们的站点的数据库驱动的特征。我们会看到如何使用PHP在后台建立半动态页面而不必过分加重服务器的负担。&lt;/p&gt;
&lt;p&gt;　　经常有人问论坛是如何利用一个&amp;lt;INPUT TYPE=FILE&amp;gt;标记来接受文件的上载的。我们也将学习到如何用PHP实现这种功能，而且我们还会看到如果将其有效地结合到一个数据库驱动的站点中。&lt;/p&gt;
&lt;p&gt;　　最后，PHP还有一个相当强大的功能是可以很简单地将动态生成的内容很方便地作为email的信息发送出去。不论你是想要使用PHP使得访问者 将你的站点的内容发送给它们的朋友，还是仅仅想提供一种方法让用户可以得到他们遗忘的口令，PHP的email函数都可以很好地实现这种功能！&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;　　PHP的服务器端包含&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　如果你已经在Internet上工作过一段时间，你也许接触过服务器端包含(SSI)这个术语；如果你没有接触过，你可以参看有关这个问题的Matt Mickiewicz的迷你指南。&lt;/p&gt;
&lt;p&gt;　　从本质上说，SSI允许你将存储在你的Web服务器上的某一个文件的内容插入到另一个文件中去，最常见的应用是将一个网站的公用设计部分写入一 个小的HTML文件当中，这个文件可以被Web页面所包含。对这个小文件的所有变动立即会影响所有包含它的文件。就象一个PHP脚本一样，Web的浏览者 不需要对此有所了解，因为Web服务器会在将被请求的页面发送到浏览器之前做好所有的工作。&lt;/p&gt;
&lt;p&gt;　　PHP有一个函数可以提供类似的功能。但是在包含文件中除了可以含有正式的HTML以及其它静态的内容以外，还可以含有脚本程序。让我们来看看下面这个例子：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;&amp;lt;!&amp;#8211; include-me.inc &amp;#8211;&amp;gt;&lt;br /&gt;
            &amp;lt;?php&lt;br /&gt;
            echo( &amp;quot;&amp;lt;P&amp;gt;Soylent Green is made from people! &amp;quot; );&lt;br /&gt;
            ?&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　在上面的文件中，include-me.inc包含了一些简单的PHP代码。请注意这个文件的文件名的结尾是.inc，而不是.php。这表示 这个文件与一般的Web服务器所认为的PHP脚本有所不同。这会保证这个文件只有被插入到一个.php文件中才会被执行，此外这也有助于你分辨你的PHP Web页面和PHP包含文件。&lt;/p&gt;
&lt;p&gt;　　你还需要下面的文件：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;&amp;lt;!&amp;#8211; testinclude.php &amp;#8211;&amp;gt;&lt;br /&gt;
            &amp;lt;HTML&amp;gt;&lt;br /&gt;
            &amp;lt;HEAD&amp;gt;&lt;br /&gt;
            &amp;lt;TITLE&amp;gt; Test of PHP Includes &amp;lt;/TITLE&amp;gt;&lt;br /&gt;
            &amp;lt;/HEAD&amp;gt;&lt;br /&gt;
            &amp;lt;BODY&amp;gt;&lt;br /&gt;
            &amp;lt;?php&lt;br /&gt;
            include(&amp;quot;include-me.inc&amp;quot;);&lt;br /&gt;
            ?&amp;gt;&lt;br /&gt;
            &amp;lt;/BODY&amp;gt;&lt;br /&gt;
            &amp;lt;/HTML&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　这个文件和我们以前使用过的PHP脚本差不多，它的扩展名是.php extension(如果你的服务器需要，也可以是.php3)。请注意对include函数的调用。我们指定了我们要插入的文件名(include- me.inc)，PHP会试图获取这个文件并将其插入到现在的文件中以取代include。将这两个文件都上载到你的Web服务器(或者将它们拷贝到你的 Web服务器的文档文件夹，如果你正在这个服务器上工作的话)，然后用你的浏览器装载testinclude.php。你会看到一个包含我们的插入文件信 息的Web页面的，一切和你当初预料的没有什么两样。&lt;/p&gt;
&lt;p&gt;　　如果这个例子不能工作，你也许需要配置你的php.ini文件中的include_path选项。用你常用的文本编辑器打开这个文件找到以 include_path开始的一行(一般是在文件的中间)。就象你所熟悉的系统PATH环境变量的设置一样，这里包含了一个目录的列表，PHP会从这些 位置寻找你所要包含的文件。它应该包括&amp;quot;.&amp;quot;(当前目录)。&lt;/p&gt;
&lt;p&gt;　　根据你的服务器的操作系统是Windows还是UNIX，你也许需要确定是否要用到引号：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;include_path=.:/another/directory&lt;br /&gt;
            对于Windows：&lt;br /&gt;
            include_path=&amp;quot;.;c:anotherdirectory&amp;quot;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;　　利用插入文件提高安全性&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　PHP脚本有时会包含一些诸如用户名、口令以及其它一些你不想公开的敏感信息。你也许已经使用过mysql_connect函数，这个函数要求 你在需要访问数据库的PHP脚本中输入你的MySQL用户名和口令。虽然你可以简单地对MySQL进行设置以使得这个用户名和口令只能供PHP使用，而为 会被可能出现的黑客利用(通过在第八章中学习的方法对用户表的主机字段进行设置)，你也许还是需要其它的比较方便的对你的用户名和口令的保护。&lt;/p&gt;
&lt;p&gt;　　&amp;ldquo;但是等一下，&amp;rdquo;可能你会这样说，&amp;ldquo;因为PHP是由服务器处理的，没人会看到我的口令，对吗？&amp;rdquo;不错，但是你是否考虑到这样一个情况，服务器对 PHP的解析可能会因为偶然的原因而停止。这可能是因为某个善意的同事对软件的错误配置，也可能是因为其它的因素，如果发生了这样的情况，PHP页面会当 成纯文本文件来处理，于是你的所有的PHP代码(包括你的口令)将是完全公开的！&lt;/p&gt;
&lt;p&gt;　　为了预防这样的安全漏洞，你可以将包含敏感信息的代码放到一个插入文件中，然后将它放到一个不属于你的Web服务的目录结构的目录中去。将这个 目录添加到你的PHP的include_path中(在php.ini中添加)，你可以指定PHP包含函数所使用的目录，而不必担心其中文件的安全，因为 你的Web服务器不会将其作为Web页来显示。&lt;/p&gt;
&lt;p&gt;　　例如，如果你的Web服务器定义所有的Web页面必须存在于/home/httpd/及其子目录中，你可以建立一个名为/home /phplib/来保存你的包含文件。将这个目录添加到你的include_path中，这样就行了！下面的例子显示了如何将你的数据库连接代码放置到一 个包含文件中：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;&amp;lt;!&amp;#8211; dbConnect.inc (in /home/phplib/) &amp;#8211;&amp;gt;&lt;br /&gt;
            &amp;lt;?php&lt;br /&gt;
            $cnx = mysql_connect(&amp;quot;localhost&amp;quot;,&lt;br /&gt;
            &amp;quot;root&amp;quot;, &amp;quot;rootpassword&amp;quot;);&lt;br /&gt;
            ?&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　以及一个使用这个包含文件的文件：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;&amp;lt;!&amp;#8211; dbSample.php (in /home/httpd/) &amp;#8211;&amp;gt;&lt;br /&gt;
            &amp;lt;?php&lt;br /&gt;
            // Connect to MySQL&lt;br /&gt;
            include(&amp;quot;dbConnect.inc&amp;quot;);&lt;br /&gt;
            mysql_select_db(&amp;quot;myDatabase&amp;quot;,$cnx);&lt;br /&gt;
            &amp;#8230;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　正如你看到的，如果你的服务器的PHP停止了工作，被暴露的仅仅是对包含函数的调用。用户名和口令被安全地存储在dbConnect.inc中，而这个文件不能从网站直接访问。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;　　半动态页面&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　作为一个成功的(或者是即将成功的)网站的所有者，你肯定希望你的网站的访问量越来越高。不幸的是，大的访问量恰恰也是Web服务器的管理者所 担心的事&amp;#8211;特别是当网站主要是由动态生成的、由数据库驱动的页面组成的时候，情况更是这样。这样的页面与处理传统的HTML文件相比，意味着运行Web 服务软件的计算机的巨大负担。因为对每一个页面的请求都相当于在计算机上运行一个小程序。&lt;/p&gt;
&lt;p&gt;　　虽然数据库驱动的站点的有些页面必须严格地实时地从数据库中调用相关的数据，但是大部分页面的要求并不这么严格。例如对于一个Web站点的首页 来说，典型的情况是，它会向访问者简要介绍这个站点最近做了哪些更新。但是事实上这样的更新多长时间做一次呢？一天一次？还是一周一次？而且对于你的站点 的访问者来说非常及时地了解这些更新又有多大价值？也许对于这类变动在你网站上的反应稍微有点滞后也不会有多大问题。&lt;/p&gt;
&lt;p&gt;　　通过将高访问量的动态页面转换成&amp;ldquo;半动态&amp;rdquo;的页面，也就是一个可以按照一定时间间隔&amp;ldquo;刷新&amp;rdquo;内容以动态地重新生成的静态页面，你可以大大减轻你的Web服务器处理数据库驱动的页面的工作量。&lt;/p&gt;
&lt;p&gt;　　例如，我们有一个名为index.php的首页，它提供你的网站的新内容的摘要。通过对服务器日志的检查，你可以发现这是你的网站中被访问得最 多的页面之一。通过前面的讨论，你应该已经意识到对于这个页面我们并不需要在每次请求时动态地生成。只在在每次将新内容添加到你的站点的同时更新这个页 面，就可以充分保证它的动态效果了。使用一个PHP程序，你可以生成动态输出的页面一个静态的&amp;ldquo;映像&amp;rdquo;，你可以将其命名为index.html以取代原来 的动态页面。&lt;/p&gt;
&lt;p&gt;　　我们需要学习一些有关文件读取、写入以及修改的知识。PHP可以很好地完成这些工作，只是我们之前没看到过这些我们所需要的函数：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;fopen&lt;br /&gt;
            打开一个文件，以用来进行读写操作。这个文件可以存储在服务器的硬盘上，也可以通过一个URL装载。 &lt;br /&gt;
            fclose&lt;br /&gt;
            通知PHP你将不再对某一文件进行读写操作，释放它以备其它程序或脚本使用。&lt;br /&gt;
            fread&lt;br /&gt;
            将一个文件的数据读入到一个PHP变量中。允许你指定读取多少信息(也就是多少字符或多少字节)。 &lt;br /&gt;
            fwrite&lt;br /&gt;
            将一个来自于PHP变量的数据写入到文件中。 &lt;br /&gt;
            copy&lt;br /&gt;
            执行一个文件拷贝的操作。 &lt;br /&gt;
            unlink&lt;br /&gt;
            从硬盘中删除一个文件。&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　你明白了吗？如果还没有，不要担心&amp;#8211;等一下我们会进行详细讲解。&lt;/p&gt;
&lt;p&gt;　　建立一个名为generateindex.php的文件。它用来模拟一个Web浏览器从index.php(你的首页的动态版本)读取内容，并 将其以静态文本的格式写入index.html中。如果在这个处理过程中发生了什么错误，我们需要避免对原来的index.html&amp;ldquo;好的&amp;rdquo;拷贝的破坏， 所以我们的这个脚本先将新的静态版本写入到一个临时文件(tempindex.html)中，如果中途没发生什么问题，再用其覆盖index.html。&lt;/p&gt;
&lt;p&gt;　　下面是generateindex.php的代码，我们加入足够多的注解以保证你能顺利地读懂这段程序：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;&amp;lt;!&amp;#8211; generateindex.php &amp;#8211;&amp;gt;&lt;br /&gt;
            &amp;lt;?php&lt;br /&gt;
            //设置我们将要使用的文件&lt;br /&gt;
            $srcurl = &amp;quot;http://localhost/index.php&amp;quot;;&lt;br /&gt;
            $tempfilename = &amp;quot;tempindex.html&amp;quot;;&lt;br /&gt;
            $targetfilename = &amp;quot;index.html&amp;quot;;&lt;br /&gt;
            ?&amp;gt;&lt;br /&gt;
            &amp;lt;HTML&amp;gt;&lt;br /&gt;
            &amp;lt;HEAD&amp;gt;&lt;br /&gt;
            &amp;lt;TITLE&amp;gt;&lt;br /&gt;
            Generating &amp;lt;?php echo(&amp;quot;$targetfilename&amp;quot;); ?&amp;gt;&lt;br /&gt;
            &amp;lt;/TITLE&amp;gt;&lt;br /&gt;
            &amp;lt;/HEAD&amp;gt;&lt;br /&gt;
            &amp;lt;BODY&amp;gt;&lt;br /&gt;
            &amp;lt;P&amp;gt;Generating &amp;lt;?php echo(&amp;quot;$targetfilename&amp;quot;); ?&amp;gt;&amp;#8230;&amp;lt;/P&amp;gt;&lt;br /&gt;
            &amp;lt;?php&lt;br /&gt;
            //首先删除上次操作可能遗留下来的临时文件。&lt;br /&gt;
            //这个过程可能会提示错误，所以我们使用@以防止报错。&lt;br /&gt;
            @unlink($tempfilename);&lt;br /&gt;
            //通过一个URL的请求装入动态版本。&lt;br /&gt;
            //在我们接收到相关内容之前，Web服务器会对PHP进行处理&lt;br /&gt;
            //(因为本质上我们是在模拟一个Web浏览器)，&lt;br /&gt;
            //所以我们将获得的是一个静态的HTML页面。&lt;br /&gt;
            //&amp;#8217;r'指出我们只要求对这个&amp;ldquo;文件&amp;rdquo;进行读操作。&lt;br /&gt;
            $dynpage = fopen($srcurl, &amp;#8216;r&amp;#8217;);&lt;br /&gt;
            //处理错误&lt;br /&gt;
            if (!$dynpage) {&lt;br /&gt;
            echo(&amp;quot;&amp;lt;P&amp;gt;Unable to load $srcurl. Static page &amp;quot;.&lt;br /&gt;
            &amp;quot;update aborted!&amp;lt;/P&amp;gt;&amp;quot;);&lt;br /&gt;
            exit();&lt;br /&gt;
            }&lt;br /&gt;
            //将这个URL的内容读入到一个PHP变量中。&lt;br /&gt;
            //指定我们将读取1MB的数据(超过这个数据量一般是意味着出错了)。&lt;br /&gt;
            $htmldata = fread($dynpage, 1024*1024);&lt;br /&gt;
            //当我们完成工作后，关闭到源&amp;ldquo;文件&amp;rdquo;的连接。&lt;br /&gt;
            fclose($dynpage);&lt;br /&gt;
            //打开临时文件(同时在这个过程中建立)以用来写入(注意&amp;#8217;w'的用法).&lt;br /&gt;
            $tempfile = fopen($tempfilename, &amp;#8216;w&amp;#8217;);&lt;br /&gt;
            //处理错误&lt;br /&gt;
            if (!$tempfile) {&lt;br /&gt;
            echo(&amp;quot;&amp;lt;P&amp;gt;Unable to open temporary file &amp;quot;.&lt;br /&gt;
            &amp;quot;($tempfilename) for writing. Static page &amp;quot;.&lt;br /&gt;
            &amp;quot;update aborted!&amp;lt;/P&amp;gt;&amp;quot;);&lt;br /&gt;
            exit();&lt;br /&gt;
            }&lt;br /&gt;
            //将静态页面的数据写入到临时文件中&lt;br /&gt;
            fwrite($tempfile, $htmldata);&lt;br /&gt;
            //完成写入后，关闭临时文件。&lt;br /&gt;
            fclose($tempfile);&lt;br /&gt;
            //如果到了这里，我们应该已经成功地写好了一个临时文件，&lt;br /&gt;
            //现在我们可以用它来覆盖原来的静态页面了。&lt;br /&gt;
            $ok = copy($tempfilename, $targetfilename);&lt;br /&gt;
            //最后删除这个临时文件。&lt;br /&gt;
            unlink($tempfilename);&lt;br /&gt;
            ?&amp;gt;&lt;br /&gt;
            &amp;lt;P&amp;gt;Static page successfully updated!&amp;lt;/P&amp;gt;&lt;br /&gt;
            &amp;lt;/BODY&amp;gt;&lt;br /&gt;
            &amp;lt;/HTML&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　上面的代码看上去很令人恐怖，其实这只是因为我们在其中包含了大量的注释。删除这些注释。你会看到这段代码其实很简单。&lt;/p&gt;
&lt;p&gt;　　现在，每当我们运行generateindex.php(也就是说通过一个浏览器请求这个页面)，就会从index.php生成一个新刷新的 index.html。通过将index.php和generateindex.php移动到一个访问有限制的目录，你可以保证只有站点管理者能够更新你 的主页。将这个脚本作一下扩充，你可以生成你的站点上的所有的半动态页面，你还可以在你的内容管理系统中增加&amp;ldquo;更新主页&amp;rdquo;的连接！&lt;/p&gt;
&lt;p&gt;　　如果你希望你的主页能够自动地刷新，你只需要设置你的服务器定期地运行generateindex.php(例如说，每隔一个小时)。在新的 Windows 9x下，你可以使用任务管理程序(对于旧的版本，你必须使用补丁包)每隔一个小时自动运行php.exe。你只需要建立一个包含以下行的名为 generateindex.bat的批处理文件。&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;C:PHPphp.exe C:WWWgenerateindex.php&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　如果必要的话，对路径和文件名进行调整，然后设置任务管理程序每隔一个小时执行一次generateindex.bat(你需要设置24个每天在固定时间运行的任务)。&lt;/p&gt;
&lt;p&gt;　　在Linux下(或其它基于UNIX的平台下)你可以使用cron&amp;#8211;一个可以在各种UNIX系统下用来定义任务和运行时间的程序来完成类似的工作。如果你对cron还不了解的话，你可以请教你熟悉的Linux专家，或者查阅你熟悉的Linux网站。&lt;/p&gt;
&lt;p&gt;　　你使用cron设置任务和我们之前讨论的在Windows下的用法很类似。但是，你需要一个单机版的PHP，这不是指在第一章中编译的 Apache中可导入的PHP模块。你需要对用来编译Apache模块的同一软件包中单独地进行编译。如果你需要帮助，你可以参看软件包提供的说明，也可 以查阅PHP官方网站！&lt;/p&gt;
&lt;p&gt;　　对于一个有经验的cron使用者来说，你只需要在你的crontab文件中增加下面的这一行：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;0 0-23 * * * php /path/to/generateindex.php &amp;gt; /dev/null&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;　　处理文件的上载&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　到目前为止，这个教程中数据库驱动的站点的所有例子都是处理的文本的数据。笑话、文章、作者&amp;#8230;所有的这些都可以完全由文本形式的字符串来表 示。但是如果你在运行时，有一个在线的数字图库需要人们能够上载用数字照相机拍摄的图片，我们就需要允许访问者向我们的站点上载他们的图片，我们也需要相 应的处理程序。&lt;/p&gt;
&lt;p&gt;　　让我们先从基本的开始：写一个HTML表单用来供用户上载文件。在HTML中，这很简单，只需要用一个&amp;lt;INPUT TYPE=FILE&amp;gt;标志就行了。但是，默认情况是只有用户选择的文件名被发送了。要通过表单数据提交文件自身，我们需要在&amp;lt;FORM&amp;amp; gt;标志中增加ENCTYPE=&amp;quot;multipart/form-data&amp;quot;：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;&amp;lt;FORM ACTION=&amp;quot;fileupload.php&amp;quot; METHOD=POST&lt;br /&gt;
            ENCTYPE=&amp;quot;multipart/form-data&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;P&amp;gt;Select file to upload:&lt;br /&gt;
            &amp;lt;INPUT TYPE=FILE NAME=&amp;quot;uploadedfile&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
            &amp;lt;P&amp;gt;&amp;lt;INPUT TYPE=SUBMIT NAME=&amp;quot;submit&amp;quot; VALUE=&amp;quot;Submit&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
            &amp;lt;/FORM&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　正如我们看到的，一个PHP脚本(fileupload.php)会处理前面的表单提交的数据。也正如你所预计的，一个名 为$uploadedfile(由&amp;lt;INPUT&amp;gt;标志的NAME属性确定)的PHP变量会自动被建立。但是，$uploadedfile中存 储的不是上载文件的内容，而是存储在Web服务器上的硬盘中的文件的文件名，这个文件被保存在TEMP环境变量所指定的目录中(例如，对于绝大多数的 Windows 9x系统，这个目录将是C:WindowsTEMP)。这个文件仅仅在用来处理该表单提交的PHP脚本运行时存在，所以如果你想有什么其它用途(例如，将 它存起来以供网站显示)，你需要使用我们在前面提到的copy函数在其它地方做一份拷贝。&lt;/p&gt;
&lt;p&gt;　　伴随着$uploadedfile，三个其它的变量也会同时被建立。$uploadedfile_name包含了文件提交前的文件名(已提交的 文件将在TEMP目录中以phpx的文件名存储，这里x是一个数字)，$uploadedfile_size说明了文件的大小(以字节表示)， 而$uploadedfile_type说明了MIME类型(例如text/plain、image/gif等等)。记住，&amp;quot;uploadedfile&amp;quot; 仅仅是提交文件的INPUT标志中的NAME，实际的文件名将存在上述变量中。&lt;/p&gt;
&lt;p&gt;　　你可以根据这些变量以决定是否接受一个上载的文件。例如，在我们的图库中我们仅仅只对JPEG或GIF文件感兴趣。这些文件的MIME类型应该是image/pjpeg或image/gif，所以确认上载文件的代码大致上是这样大：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;if (&amp;quot;image/pjpeg&amp;quot; == $uploadedfile_type&lt;br /&gt;
            or &amp;quot;image/gif&amp;quot; == $uploadedfile_type) {&lt;br /&gt;
            // Handle the file&amp;#8230;&lt;br /&gt;
            } else {&lt;br /&gt;
            echo(&amp;quot;&amp;lt;P&amp;gt;Please submit a JPEG or GIF image file. &amp;quot;);&lt;br /&gt;
            }&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　虽然你可以使用一个类似的技术以拒绝过大的文件(通过检查$uploadedfile_size变量)，但是通常这不是一个好主意。在得到这个 变量之前，这个文件已经被上载并保存在TEMP目录中。如果你试图因为磁盘容量或者是带宽的原因拒绝文件的上载，事实上那个大文件还是被上载了(尽管它们 立即又被删除了)，这对于你来说也许是个问题。&lt;/p&gt;
&lt;p&gt;　　更好的方法是，你可以提前告诉PHP你希望可以接受的文件的大小的上限。有两个方法。第一个是调整你的php.ini文件中的upload_max_filesize设置。默认值是2MB，所以如果你想要接受更大的文件，你需要立即改变这个值。&lt;/p&gt;
&lt;p&gt;　　第二个方法是在你的表单中包含一个隐含INPUT域，它的名字是MAX_FILE_SIZE，在其中你可以定义你所能接受的最大的文件的大小。 出于安全的原因，这个值不能超过你的php.ini文件中的upload_max_filesize的设置，但是它提供了一种方法在不同页面中各自定义上 载文件大小的上限。例如，下面的表单，只允许我们最大上载1K字节的文件(1024字节)：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;&amp;lt;FORM ACTION=&amp;quot;fileupload.php&amp;quot; METHOD=POST&lt;br /&gt;
            ENCTYPE=&amp;quot;multipart/form-data&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;P&amp;gt;Select file to upload:&lt;br /&gt;
            &amp;lt;INPUT TYPE=FILE NAME=&amp;quot;uploadedfile&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
            &amp;lt;P&amp;gt;&amp;lt;INPUT TYPE=SUBMIT NAME=&amp;quot;submit&amp;quot; VALUE=&amp;quot;Submit&amp;quot;&amp;gt;&amp;lt;/P&amp;gt;&lt;br /&gt;
            &amp;lt;INPUT TYPE=HIDDEN NAME=MAX_FILE_SIZE VALUE=1024&amp;gt;&lt;br /&gt;
            &amp;lt;/FORM&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;　　指定唯一的文件名&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　正如我们前面提到的，要保存一个上载的文件，我们需要将它拷贝到另一个目录是保存。当我们从$uploadedfile_name获取每个上载 的文件的文件名时，我们不能保证不会上传两个同名的文件。在这种情况下，使用它的原名存储文件将导致新上载的文件覆盖原来上载的文件。&lt;/p&gt;
&lt;p&gt;　　因为这个原因，你通过想要采用一种方法对所有上载的文件指定一个唯一的文件名。使用系统时间(它可以通过使用PHP的time函数获得)，我们 可以容易地取得一个其于从1/1/1970到目前的秒数的名字。但是如果两个文件恰巧在同一秒同时被上载呢？这了防止这个问题，我们在文件名中同时使用客 户端的IP地址(由PHP自动存储在$REMOTE_HOST中)。因为我们不太可能同一秒从同一个IP地址接受两个文件，这个方案应该是可行的。&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;// Pick a file extension&lt;br /&gt;
            if ( &amp;quot;image/pjpeg&amp;quot; == $uploadedfile_type )&lt;br /&gt;
            $extension = &amp;quot;.jpg&amp;quot;;&lt;br /&gt;
            else&lt;br /&gt;
            $extension = &amp;quot;.gif&amp;quot;;&lt;br /&gt;
            // The complete path/filename&lt;br /&gt;
            $filename = &amp;quot;C:\Uploads\&amp;quot; . time() .&lt;br /&gt;
            $REMOTE_HOST . $extension;&lt;br /&gt;
            // Copy the file&lt;br /&gt;
            if (copy($uploadedfile, $filename)) {&lt;br /&gt;
            echo(&amp;quot;&amp;lt;P&amp;gt;File stored successfully as $filename.&amp;quot;);&lt;br /&gt;
            } else {&lt;br /&gt;
            echo(&amp;quot;&amp;lt;P&amp;gt;Could not save file as $filename!&amp;quot;);&lt;br /&gt;
            }&lt;br /&gt;
            请注意如果是在Windows下，我们必须在路径中使用双反斜杠(\)，因为反斜杠用来在PHP文本字符串中表示特殊字符。而在UNIX下，我们只要象通常那样使用一个斜杠(/)。&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;　　将上载的文件保存到数据库中&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　我们已经建立了一个访问者可以上传JPEG和GIF图象，并将其存储在我们的服务器上的系统，但是为什么不是这个教程所介绍的数据库驱动呢？如 果我们这个系统就这样维持现状不变，将不得不有人负责从文件夹中收集提交的图象并手工将其添加到Web站点！回头看看第七章，在那里我们开发了一个系统使 得站点的访问者可以提交笑话将将其存到数据库中，以备管理者通过，我们知道这是一种更好的方法！&lt;/p&gt;
&lt;p&gt;　　MySQL有一些列类型可以用来存储二进制数据。在数据库术语中，这些列类型可以存储BLOB(二进制大对象)。然而，在一个关系型数据库中储 存大的文件并不是一个好主意。尽管将所有数据放在一个地方会给我们带来方便，但是大的文件导致大的数据库，而大的数据库会导致性能的降低和太大的备份文 件。&lt;/p&gt;
&lt;p&gt;　　通常最好的选择是将文件名存储在数据库中。只要你记得在数据中删除记录时删除相应的文件就可以了。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;　　PHP中的Email&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　Email在Internet上有着强大的影响力。不论你是想要给你的用户提供一个&amp;quot;what&amp;#8217;s new&amp;quot;周刊，还是考虑一个途径让你的用户可以获得丢失的口令，你都会用到email。PHP便得使用email非常的简单，你只需要简单地调用mail 函数就可以发出信息。&lt;/p&gt;
&lt;p&gt;　　在你使用mail函数发送email之前，你首先必须设置PHP的与email相关的选项。这儿是在Windows下的php.ini文件中的相关行：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;[mail function]&lt;br /&gt;
            SMTP = localhost ;仅对win32有效&lt;br /&gt;
            sendmail_from = me@localhost.com ;仅对win32有效&lt;br /&gt;
            ;sendmail_path = ;仅对unix有效&lt;br /&gt;
            &amp;#8230;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　取决于你使用的是Windows还是UNIX，PHP会通过一个SMTP服务器或一个本地的sendmail系统发送email。对这些的设置 不是本教程的讨论范围，你可以从其它地方找到有关这二者的大量信息。然而，如果你是在Windows上运行，有可能你的ISP已经为你提供了一个SMTP 服务器。这也就是你发送信息设置你的email程序所用的服务器。将SMTP设置为那个服务器的主机名或IP地址。&lt;/p&gt;
&lt;p&gt;　　sendmail_from会设置你的emails发出时默认的发出的email地址。如果你正在管理这个服务器，你可以将你的email地址放在这儿。&lt;/p&gt;
&lt;p&gt;　　最后，sendmail_path在UNIX下将不会被注释(也就是说，删除这一行前面的分号)，你需要将其设置为你的系统上的sendmail程序的路径和文件名。在Linux下，这通常是指/usr/sbin/sendmail。&lt;/p&gt;
&lt;p&gt;　　做好这些配置后重新启动你的Web服务器，PHP将具有全部的email功能。现在在PHP中发送一个email是相当容易的：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mail(&amp;quot;to-address@somewhere.com&amp;quot;, &amp;quot;Message Subject&amp;quot;, &amp;quot;This is the body of the message.&amp;quot;);&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　要发送给多个收件人只需要将多个地址用逗号分开：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mail(&amp;quot;to1@mail.net, to2@mail.net, &amp;#8230;&amp;quot;, &amp;quot;Message Subject&amp;quot;, &amp;quot;Message body&amp;quot;);&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　在标题中指定From:或者Reply-To:的地址也非常简单。将其作为第四个参数带入，其中以回车-换行符分隔：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mail(&amp;quot;to@mail.net&amp;quot;, &amp;quot;Message Subject&amp;quot;, &amp;quot;Message body&amp;quot;, &amp;quot;From: webmaster@host.com Reply-to:admin@host.com&amp;quot;);&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　与一个数据库相结合，一个邮件列表变得非常容易管理！只需要从数据库中取出地址列表并使用mail函数发送信息就行了。个人化的信息也非常简单。参看下面的例子：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;// Retrieve $email and $password from the database based&lt;br /&gt;
            // on the $username provided in a form.&lt;br /&gt;
            mail($email, &amp;quot;Your Password&amp;quot;,&lt;br /&gt;
            &amp;quot;Hi there!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You just filled out a form on our Web site&lt;br /&gt;
            indicating that you had lost your password.&lt;br /&gt;
            As requested, we are sending it to you by&lt;br /&gt;
            email.&lt;/p&gt;
&lt;p&gt;username: $username&lt;br /&gt;
            password: $password&lt;/p&gt;
&lt;p&gt;Please record this information in a safe&lt;br /&gt;
            place so you have it on hand for your next&lt;br /&gt;
            visit to pingpongballs.com!&lt;/p&gt;
&lt;p&gt;-The Webmaster.&lt;/p&gt;
&lt;p&gt;&amp;quot;);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　如果你在在UNIX下运行，而且你没有一个本地的sendmail系统可以发送email，这也不要紧。PHP具有完善的TCP/IP网络性 能，如果需要，你可以连接到一个SMTP服务器以发送信息。同样的，如果你需要在发出的信息中包含附件，PHP也可以实现这种功能。&lt;/p&gt;
&lt;p&gt;　　不幸的是，内置的mail函数不支持这些特征，如果你需要它们，你将不得不从头编写你自己的email函数。WROX Press编写的&amp;quot;专业PHP程序设计&amp;quot;已经为你完成了这些工作，在该书的第17章你可以找到全部的代码。尽管这是我高度推荐的一本好书(见我的回顾)， 但是如果你只是想获得这项功能，你也可以不购买这本书，这个源代码你可以从WROX的网站自由地下载。&lt;/p&gt;
&lt;p&gt;　　除了这两个小问题外，PHP的内置mail函数为你的Web页面发送email信息提供了令人难以相信的方便。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;　　结语和致谢&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　现在这个十章的教程即将结束了。在过去的三个月中我们了解了MySQL RDBMS和PHP脚本语言，这两个工具结合在一起可以搭建一个高性能的、易管理的数据库驱动的Web站点。&lt;/p&gt;
&lt;p&gt;　　在我写这个教程的过程，许多读者给了我很多的鼓励，向我提供了很多建议，问了我很多问题，并向我表示感谢，所有的这一切使得这项令人恐怖的工作 变得比较容易而且相当有趣。如果没有读者的支持，很难想象最终我会完成这个教程。在此，我还想向MySQL和PHP的发明者表示感谢。这两个产品，可供个 人免费使用，它们延续了这样一个传统，Internet的任何一个产品都和任何一个大公司的产品一样的专业，一样的完美。&lt;/p&gt;
&lt;p&gt;　　这样一个大的项目不可能是完全独立完成的。我想在这里感谢我的同事Mark、Matt和Jason。感谢我的最好的朋友Amy Mathieson，她不在意我在去澳州拜访她时花费了绝大多数的时间来完成这项工作。感谢她的妹妹Lisa Mathieson，在我逗留期间我使用了她的计算机。最后我还要感谢我的好朋友Tony和Helen Terbizan，他们为我提供了一个Internet连接，还为我提供了好几顿美餐！&lt;/p&gt;
&lt;p&gt;　　再次感谢你的阅读，再见！&lt;/p&gt;
&lt;h3&gt;相关文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/sql-gradual-24-embedded-sql/&quot; title=&quot;SQL循序渐进(24)嵌入SQL&quot;&gt;SQL循序渐进(24)嵌入SQL&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/sql-gradual-23-union-and-external-connections/&quot; title=&quot;SQL循序渐进(23)UNION 和 外部连接&quot;&gt;SQL循序渐进(23)UNION 和 外部连接&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/sql-gradual-22-exists-and-all/&quot; title=&quot;SQL循序渐进(22)EXISTS 和 ALL&quot;&gt;SQL循序渐进(22)EXISTS 和 ALL&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/sql-gradual-21-more-for-the-sub/&quot; title=&quot;SQL循序渐进(21)更多的子查询&quot;&gt;SQL循序渐进(21)更多的子查询&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/sql-gradual-20-aliases-in-and-of-enquiries/&quot; title=&quot;SQL循序渐进(20)Aliases 、In以及子查询&quot;&gt;SQL循序渐进(20)Aliases 、In以及子查询&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/sql-gradual-19-distinct-and-exclude-copy/&quot; title=&quot;SQL循序渐进(19)DISTINCT和排除复制&quot;&gt;SQL循序渐进(19)DISTINCT和排除复制&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/sql-gradual-18-index/&quot; title=&quot;SQL循序渐进(18)索引&quot;&gt;SQL循序渐进(18)索引&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/sql-gradual-16-mathematical-operators/&quot; title=&quot;SQL循序渐进(16)数学运算符&quot;&gt;SQL循序渐进(16)数学运算符&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/sql-gradual-15-in-between-conditions-and-the-operator/&quot; title=&quot;SQL循序渐进(15)IN 和 BETWEEN 条件运算符&quot;&gt;SQL循序渐进(15)IN 和 BETWEEN 条件运算符&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/sql-gradual-14-combination-of-conditions-and-boolean-operators/&quot; title=&quot;SQL循序渐进(14)组合条件和布尔运算符&quot;&gt;SQL循序渐进(14)组合条件和布尔运算符&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fphp-and-mysql-10%2F&amp;title=PHP%E3%80%81MySQL%E6%95%99%E7%A8%8B%EF%BC%88%E5%8D%81%EF%BC%89&amp;description=PHP%E5%8A%9F%E8%83%BD%E7%9A%84%E5%BC%BA%E5%A4%A7%E9%A6%96%E5%85%88%E5%9C%A8%E4%BA%8E%E5%AE%83%E7%9A%84%E5%A4%A7%E9%87%8F%E7%9A%84%E5%86%85%E7%BD%AE%E5%87%BD%E6%95%B0%E5%BA%93%EF%BC%8C%E5%AE%83%E5%8F%AF%E4%BB%A5%E8%AE%A9%E5%88%9D%E5%AD%A6%E8%80%85%E4%B9%9F%E8%83%BD%E6%89%A7%E8%A1%8C%E8%AE%B8%E5%A4%9A%E5%A4%8D%E6%9D%82%E7%9A%84%E4%BB%BB%E5%8A%A1%EF%BC%8C%E8%80%8C%E4%B8%8D%E5%BF%85%E5%AE%89%E8%A3%85%E6%96%B0%E7%9A%84%E5%BA%93%E5%92%8C%E5%85%B3%E5%BF%83%E5%BA%95%E5%B1%82%E7%9A%84%E8%AF%A6%E7%BB%86%E6%83%85%E5%86%B5%EF%BC%8C%E8%80%8C%E8%BF%99%E6%81%B0%E6%81%B0%E6%98%AF%E5%85%B6%E5%AE%83%E6%B5%81%E8%A1%8C%E7%9A%84%E8%AF%B8%E5%A6%82Perl...&amp;tags=php%2Csql&quot; rel=&quot;2357&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/php-and-mysql-10/feed/</wfw:commentRss><description>PHP功能的强大首先在于它的大量的内置函数库，它可以让初学者也能执行许多复杂的任务，而不必安装新的库和关心底层的详细情况，而这恰恰是其它流行的诸如Perl...</description><category>sql</category><category>php</category><category>LAMP</category><pubDate>Tue, 18 Nov 2008 00:25:36 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/php-and-mysql-10/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2357</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/php-and-mysql-10/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254537/5188178</fs:itemid></item><item><title>November 18th</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254538/5188178/1/item.html</link><content:encoded>&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;em&gt;&lt;strong&gt;Today&amp;#8217;s                 Highlight in History: &lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;On November 18th, 1928, the first                 successful sound-synchronized animated cartoon,                 Walt Disney&amp;#8217;s &amp;quot;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#000080&quot;&gt;&lt;strong&gt;Steamboat Willie&lt;/strong&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;,&amp;quot; starring Mickey                 Mouse, premiered in New York. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;em&gt;&lt;strong&gt;On this date: &lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;In 1820, US Navy Captain Nathaniel                 B. Palmer discovered the frozen continent of                 Antarctica. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1883, the                 United States and Canada adopted a system of                 Standard Time zones. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1886, the 21st                 president of the United States, Chester A.                 Arthur, died in New York at age 56. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1899, musical                 conductor Eugene Ormandy was born in Budapest,                 Hungary. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1936, Germany                 and Italy recognized the Spanish government of                 Francisco Franco. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1949, Jackie                 Robinson of the Brooklyn Dodgers was named the                 National League&amp;#8217;s Most Valuable Player. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1959,                 &amp;quot;Ben-Hur,&amp;quot; the Biblical-era spectacle                 starring Charlton Heston, had its world premiere                 in New York. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1969,                 financier-diplomat Joseph P. Kennedy died in                 Hyannis Port, Massachusetts, at age 81. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1978,                 California Congressman Leo J. Ryan and four other                 people were killed in Jonestown, Guyana, by                 members of the Peoples Temple; the killings were                 followed by a night of mass murder and suicide by                 912 cult members. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1987, the                 congressional Iran-Contra committees issued their                 final report, saying President Reagan bore                 &amp;quot;ultimate responsibility&amp;quot; for                 wrongdoing by his aides. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Ten years ago:                 President Bush began a series of meetings in                 Paris with allied leaders aimed at solidifying                 support for his Persian Gulf policies. Soviet                 President Mikhail S. Gorbachev met at the Vatican                 with Pope John Paul the Second, who said all                 possible efforts should be made to avoid war in                 the Persian Gulf. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Five years ago:                 With no relief in sight from a budget impasse                 that forced a partial federal shutdown, the House                 rebelled against Republican leaders during a                 raucous Saturday session and voted to oppose                 formally adjourning the chamber until Monday.                 (GOP leaders put the chamber into recess anyway.)                 &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;One year ago:                 Twelve people were killed when a bonfire under                 construction at Texas A&amp;amp;M University                 collapsed. A jury in Jasper, Texas, convicted                 Shawn Allen Berry of murder for his role in the                 dragging death of James Byrd Junior, but spared                 him the death penalty. American author and                 composer Paul Bowles, best known for &amp;quot;The                 Sheltering Sky&amp;quot; and other novels set in                 North Africa, died in Morocco at age 88. &lt;/font&gt;&lt;/p&gt;
&lt;hr noshade=&quot;noshade&quot; size=&quot;1&quot; /&gt;
&lt;p align=&quot;center&quot;&gt;&lt;font face=&quot;Arial&quot;&gt;&lt;span class=&quot;thought&quot;&gt;每日格言&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;3&quot;&gt;&lt;strong&gt;&amp;quot;&lt;/strong&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;strong&gt;It is impossible to                 defeat an ignorant man in argument.&amp;quot;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;right&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;1&quot;&gt;&lt;em&gt;&amp;#8211;                 William G. McAdoo, American government official                 (1863-1941). &lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/genesis-8/&quot; title=&quot;旧约 — 创世记(Genesis)–8&quot;&gt;旧约 — 创世记(Genesis)–8&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/tennis-glossary/&quot; title=&quot;网球术语&quot;&gt;网球术语&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/the-splashes-of-life/&quot; title=&quot;The Splashes of Life 生命的波纹&quot;&gt;The Splashes of Life 生命的波纹&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/catch-a-fish-while-the-water-is-disturbed/&quot; title=&quot;第二十计 混水摸鱼&quot;&gt;第二十计 混水摸鱼&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/federer-lost-again/&quot; title=&quot;费德勒单打被爆仅剩双打冲金 纳德终于再会师&quot;&gt;费德勒单打被爆仅剩双打冲金 纳德终于再会师&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/conquer-php-and-mysql-in-3days-2/&quot; title=&quot;PHP/MySQL三日通 第二天 &quot;&gt;PHP/MySQL三日通 第二天 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/nadal-after-huge-change/&quot; title=&quot;剧变之后的纳达尔：三年苦熬成NO.1 压力动力并存&quot;&gt;剧变之后的纳达尔：三年苦熬成NO.1 压力动力并存&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/roddick-show-his-humor/&quot; title=&quot;罗迪克暴力摔拍后展小幽默 不在乎人们只谈论三巨头&quot;&gt;罗迪克暴力摔拍后展小幽默 不在乎人们只谈论三巨头&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/spring/&quot; title=&quot;Spring 春天&quot;&gt;Spring 春天&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/10-tips-for-seo-and-external-links/&quot; title=&quot;seo与外链绝密技巧珍藏版分享(1)&quot;&gt;seo与外链绝密技巧珍藏版分享(1)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fnovember-18th%2F&amp;title=November+18th&amp;description=Today%27s+Highlight+in+History%3A%0D%0AOn+November+18th%2C+1928%2C+the+first+successful+sound-synchronized+animated+cartoon%2C+Walt+Disney%27s+%22Steamboat+Willie%2C%22+starring+Mickey+Mouse%2C+premiered+in+New+York.+&amp;tags=November&quot; rel=&quot;2355&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/november-18th/feed/</wfw:commentRss><description>Today's Highlight in History:
On November 18th, 1928, the first successful sound-synchronized animated cartoon, Walt Disney's &quot;Steamboat Willie,&quot; starring Mickey Mouse, premiered in New York.</description><category>November</category><category>历史上的今天</category><pubDate>Tue, 18 Nov 2008 00:23:56 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/november-18th/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2355</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/november-18th/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254538/5188178</fs:itemid></item><item><title>旧约 — 创世记(Genesis)–20</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254539/5188178/1/item.html</link><content:encoded>&lt;p&gt;20:1亚伯拉罕从那里向南地迁去，寄居在加低斯和书珥中间的基拉耳。&lt;br /&gt;
And Abraham journeyed from thence toward the south country, and dwelled between Kadesh and Shur, and sojourned in Gerar.&lt;/p&gt;
&lt;p&gt;20:2亚伯拉罕称他的妻撒拉为妹子，基拉耳王亚比米勒差人把撒拉取了去。&lt;br /&gt;
And Abraham said of Sarah his wife, She is my sister: and Abimelech king of Gerar sent, and took Sarah.&lt;/p&gt;
&lt;p&gt;20:3但夜间神来在梦中对亚比米勒说，你是个死人哪，因为你取了那女人来。她原是别人的妻子。&lt;br /&gt;
But God came to Abimelech in a dream by night, and said to him, Behold, thou art but a dead man, for the woman which thou hast taken; for she is a man&amp;#8217;s wife.&lt;/p&gt;
&lt;p&gt;20:4亚比米勒却还没有亲近撒拉。他说，主阿，连有义的国，你也要毁灭吗。&lt;br /&gt;
But Abimelech had not come near her: and he said, LORD, wilt thou slay also a righteous nation?&lt;/p&gt;
&lt;p&gt;20:5那人岂不是自己对我说，她是我的妹子吗。就是女人也自己说，他是我的哥哥。我作这事是心正手洁的。&lt;br /&gt;
Said he not unto me, She is my sister? and she, even she herself said, He is my brother: in the integrity of my heart and innocency of my hands have I done this.&lt;/p&gt;
&lt;p&gt;20:6神在梦中对他说，我知道你作这事是心中正直。我也拦阻了你，免得你得罪我，所以我不容你沾着她。&lt;br /&gt;
And God said unto him in a dream, Yea, I know that thou didst this in the integrity of thy heart; for I also withheld thee from sinning against me: therefore suffered I thee not to touch her.&lt;/p&gt;
&lt;p&gt;20:7现在你把这人的妻子归还他。因为他是先知，他要为你祷告，使你存活。你若不归还他，你当知道，你和你所有的人都必要死。&lt;br /&gt;
Now therefore restore the man his wife; for he is a prophet, and he shall pray for thee, and thou shalt live: and if thou restore her not, know thou that thou shalt surely die, thou, and all that are thine.&lt;/p&gt;
&lt;p&gt;20:8亚比米勒清早起来，召了众臣仆来，将这些事都说给他们听，他们都甚惧怕。&lt;br /&gt;
Therefore Abimelech rose early in the morning, and called all his servants, and told all these things in their ears: and the men were sore afraid.&lt;/p&gt;
&lt;p&gt;20:9亚比米勒召了亚伯拉罕来，对他说，你怎吗向我这样行呢。我在什么事上得罪了你，你竟使我和我国里的人陷在大罪里。你向我行不当行的事了。&lt;br /&gt;
Then Abimelech called Abraham, and said unto him, What hast thou done unto us? and what have I offended thee, that thou hast brought on me and on my kingdom a great sin? thou hast done deeds unto me that ought not to be done.&lt;/p&gt;
&lt;p&gt;20:10亚比米勒又对亚伯拉罕说，你见了什么才作这事呢。&lt;br /&gt;
And Abimelech said unto Abraham, What sawest thou, that thou hast done this thing?&lt;/p&gt;
&lt;p&gt;20:11亚伯拉罕说，我以为这地方的人总不惧怕神，必为我妻子的缘故杀我。&lt;br /&gt;
And Abraham said, Because I thought, Surely the fear of God is not in this place; and they will slay me for my wife&amp;#8217;s sake.&lt;/p&gt;
&lt;p&gt;20:12况且她也实在是我的妹子。她与我是同父异母，后来作了我的妻子。&lt;br /&gt;
And yet indeed she is my sister; she is the daughter of my father, but not the daughter of my mother; and she became my wife.&lt;/p&gt;
&lt;p&gt;20:13当神叫我离开父家，飘流在外的时候，我对她说，我们无论走到什么地方，你可&lt;br /&gt;
And it came to pass, when God caused me to wander from my father&amp;#8217;s house, that I said unto her, This is thy kindness which thou shalt shew unto me; at every place whither we shall come, say of me, He is my brother.&lt;/p&gt;
&lt;p&gt;20:14亚比米勒把牛，羊，仆婢赐给亚伯拉罕，又把他的妻子撒拉归还他。&lt;br /&gt;
And Abimelech took sheep, and oxen, and menservants, and womenservants, and gave them unto Abraham, and restored him Sarah his wife.&lt;/p&gt;
&lt;p&gt;20:15亚比米勒又说，看哪，我的地都在你面前，你可以随意居住。&lt;br /&gt;
And Abimelech said, Behold, my land is before thee: dwell where it pleaseth thee.&lt;/p&gt;
&lt;p&gt;20:16又对撒拉说，我给你哥哥一千银子，作为你在合家人面前哨羞的（羞原文作眼），你就在众人面前没有不是了。&lt;br /&gt;
And unto Sarah he said, Behold, I have given thy brother a thousand pieces of silver: behold, he is to thee a covering of the eyes, unto all that are with thee, and with all other: thus she was reproved.&lt;/p&gt;
&lt;p&gt;20:17亚伯拉罕祷告神，神就医好了亚比米勒和他的妻子，并他的众女仆，她们便跑生育&lt;br /&gt;
So Abraham prayed unto God: and God healed Abimelech, and his wife, and his maidservants; and they bare children.&lt;/p&gt;
&lt;p&gt;20:18因耶和华为亚伯拉罕的妻子撒拉的缘故，已经使亚比米勒家中的妇人不能生育。&lt;br /&gt;
For the LORD had fast closed up all the wombs of the house of Abimelech, because of Sarah Abraham&amp;#8217;s wife.&lt;/p&gt;
&lt;h3&gt;相关文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-21/&quot; title=&quot;旧约 — 创世记(Genesis)–21 &quot;&gt;旧约 — 创世记(Genesis)–21 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-22/&quot; title=&quot;旧约 — 创世记(Genesis)–22&quot;&gt;旧约 — 创世记(Genesis)–22&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-19/&quot; title=&quot;旧约 — 创世记(Genesis)–19&quot;&gt;旧约 — 创世记(Genesis)–19&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-18/&quot; title=&quot;旧约 — 创世记(Genesis)–18&quot;&gt;旧约 — 创世记(Genesis)–18&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-17/&quot; title=&quot;旧约 — 创世记(Genesis)–17&quot;&gt;旧约 — 创世记(Genesis)–17&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-16/&quot; title=&quot;旧约 — 创世记(Genesis)–16&quot;&gt;旧约 — 创世记(Genesis)–16&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-1-2/&quot; title=&quot;旧约 — 创世记(Genesis)–15&quot;&gt;旧约 — 创世记(Genesis)–15&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-13/&quot; title=&quot;旧约 — 创世记(Genesis)–13&quot;&gt;旧约 — 创世记(Genesis)–13&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-12/&quot; title=&quot;旧约 — 创世记(Genesis)–12&quot;&gt;旧约 — 创世记(Genesis)–12&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/genesis-11/&quot; title=&quot;旧约 — 创世记(Genesis)–11&quot;&gt;旧约 — 创世记(Genesis)–11&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fgenesis-20%2F&amp;title=%E6%97%A7%E7%BA%A6+%E2%80%94+%E5%88%9B%E4%B8%96%E8%AE%B0%28Genesis%29%E2%80%9320&amp;description=20%3A1%E4%BA%9A%E4%BC%AF%E6%8B%89%E7%BD%95%E4%BB%8E%E9%82%A3%E9%87%8C%E5%90%91%E5%8D%97%E5%9C%B0%E8%BF%81%E5%8E%BB%EF%BC%8C%E5%AF%84%E5%B1%85%E5%9C%A8%E5%8A%A0%E4%BD%8E%E6%96%AF%E5%92%8C%E4%B9%A6%E7%8F%A5%E4%B8%AD%E9%97%B4%E7%9A%84%E5%9F%BA%E6%8B%89%E8%80%B3%E3%80%82%0D%0AAnd+Abraham+journeyed+from+thence+toward+the+south+country%2C+and+dwelled+between+Kadesh+and+Shur%2C+and+sojourned+in+Gerar.&amp;tags=Genesis%2C%E5%9C%A3%E7%BB%8F&quot; rel=&quot;2352&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/genesis-20/feed/</wfw:commentRss><description>20:1亚伯拉罕从那里向南地迁去，寄居在加低斯和书珥中间的基拉耳。
And Abraham journeyed from thence toward the south country, and dwelled between Kadesh and Shur, and sojourned in Gerar.</description><category>圣经</category><category>双语圣经</category><category>Genesis</category><pubDate>Mon, 17 Nov 2008 00:15:49 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/genesis-20/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2352</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/genesis-20/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254539/5188178</fs:itemid></item><item><title>东郊 韦应物</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254540/5188178/1/item.html</link><content:encoded>&lt;p&gt;吏舍跼终年， 出郊旷清曙。&lt;/p&gt;
&lt;p&gt;杨柳散和风， 青山澹吾虑。&lt;/p&gt;
&lt;p&gt;依丛适自憩， 缘涧还复去。&lt;/p&gt;
&lt;p&gt;微雨霭芳原， 春鸠鸣何处。&lt;/p&gt;
&lt;p&gt;乐幽心屡止， 遵事迹犹遽。&lt;/p&gt;
&lt;p&gt;终罢斯结庐， 慕陶真可庶。&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From office confinement all year long,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have come out of town to be free this morning&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where willows harmonize the wind&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And green hills lighten the cares of the world.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I lean by a tree and rest myself&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or wander up and down a stream.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;hellip;Mists have wet the fragrant meadows;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A spring dove calls from some hidden place.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;hellip;With quiet surroundings, the mind is at peace,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But beset with affairs, it grows restless again&amp;hellip;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here I shall finally build me a cabin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As Tao Qian built one long ago.&lt;/p&gt;
&lt;h3&gt;相关文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/reading-buddhist-classics-with-zhao-at-his-temple-in-the-early-morning/&quot; title=&quot;晨诣超师院读禅经 柳宗元 &quot;&gt;晨诣超师院读禅经 柳宗元 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/to-my-daughter-on-her-marriage-into-the-yang-family/&quot; title=&quot;送杨氏女 韦应物 &quot;&gt;送杨氏女 韦应物 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/mooring-at-twilight-in-yuyi-district/&quot; title=&quot;夕次盱眙县 韦应物 &quot;&gt;夕次盱眙县 韦应物 &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Feast-of-the-town%2F&amp;title=%E4%B8%9C%E9%83%8A+%E9%9F%A6%E5%BA%94%E7%89%A9&amp;description=%E5%90%8F%E8%88%8D%E8%B7%BC%E7%BB%88%E5%B9%B4%EF%BC%8C+%E5%87%BA%E9%83%8A%E6%97%B7%E6%B8%85%E6%9B%99%E3%80%82%0D%0A%E6%9D%A8%E6%9F%B3%E6%95%A3%E5%92%8C%E9%A3%8E%EF%BC%8C+%E9%9D%92%E5%B1%B1%E6%BE%B9%E5%90%BE%E8%99%91%E3%80%82%0D%0A%E4%BE%9D%E4%B8%9B%E9%80%82%E8%87%AA%E6%86%A9%EF%BC%8C+%E7%BC%98%E6%B6%A7%E8%BF%98%E5%A4%8D%E5%8E%BB%E3%80%82%0D%0A%E5%BE%AE%E9%9B%A8%E9%9C%AD%E8%8A%B3%E5%8E%9F%EF%BC%8C+%E6%98%A5%E9%B8%A0%E9%B8%A3%E4%BD%95%E5%A4%84%E3%80%82%0D%0A%E4%B9%90%E5%B9%BD%E5%BF%83%E5%B1%A1%E6%AD%A2%EF%BC%8C+%E9%81%B5%E4%BA%8B%E8%BF%B9%E7%8A%B9%E9%81%BD%E3%80%82%0D%0A%E7%BB%88%E7%BD%A2%E6%96%AF%E7%BB%93%E5%BA%90%EF%BC%8C+%E6%85%95%E9%99%B6%E7%9C%9F%E5%8F%AF%E5%BA%B6%E3%80%82+&amp;tags=%E8%AF%97%E8%AF%8D&quot; rel=&quot;2349&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/east-of-the-town/feed/</wfw:commentRss><description>吏舍跼终年， 出郊旷清曙。
杨柳散和风， 青山澹吾虑。
依丛适自憩， 缘涧还复去。
微雨霭芳原， 春鸠鸣何处。
乐幽心屡止， 遵事迹犹遽。
终罢斯结庐， 慕陶真可庶。</description><category>诗词</category><category>双语诗词</category><pubDate>Mon, 17 Nov 2008 00:13:08 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/east-of-the-town/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2349</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/east-of-the-town/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254540/5188178</fs:itemid></item><item><title>夕次盱眙县 韦应物</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254541/5188178/1/item.html</link><content:encoded>&lt;p&gt;落帆逗淮镇， 停舫临孤驿。&lt;/p&gt;
&lt;p&gt;浩浩风起波， 冥冥日沈夕。&lt;/p&gt;
&lt;p&gt;人归山郭暗， 雁下芦洲白。&lt;/p&gt;
&lt;p&gt;独夜忆秦关， 听钟未眠客。&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Furling my sail near the town of Huai,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I find for harbour a little cove&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Where a sudden breeze whips up the waves.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The sun is growing dim now and sinks in the dusk.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;People are coming home. The bright mountain-peak darkens.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Wildgeese fly down to an island of white weeds.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;hellip;At midnight I think of a northern city-gate,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And I hear a bell tolling between me and sleep.&lt;/p&gt;
&lt;h3&gt;相关文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/reading-buddhist-classics-with-zhao-at-his-temple-in-the-early-morning/&quot; title=&quot;晨诣超师院读禅经 柳宗元 &quot;&gt;晨诣超师院读禅经 柳宗元 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/to-my-daughter-on-her-marriage-into-the-yang-family/&quot; title=&quot;送杨氏女 韦应物 &quot;&gt;送杨氏女 韦应物 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/east-of-the-town/&quot; title=&quot;东郊 韦应物 &quot;&gt;东郊 韦应物 &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fmooring-at-twilight-in-yuyi-district%2F&amp;title=%E5%A4%95%E6%AC%A1%E7%9B%B1%E7%9C%99%E5%8E%BF+%E9%9F%A6%E5%BA%94%E7%89%A9&amp;description=%E8%90%BD%E5%B8%86%E9%80%97%E6%B7%AE%E9%95%87%EF%BC%8C+%E5%81%9C%E8%88%AB%E4%B8%B4%E5%AD%A4%E9%A9%BF%E3%80%82%0D%0A%E6%B5%A9%E6%B5%A9%E9%A3%8E%E8%B5%B7%E6%B3%A2%EF%BC%8C+%E5%86%A5%E5%86%A5%E6%97%A5%E6%B2%88%E5%A4%95%E3%80%82%0D%0A%E4%BA%BA%E5%BD%92%E5%B1%B1%E9%83%AD%E6%9A%97%EF%BC%8C+%E9%9B%81%E4%B8%8B%E8%8A%A6%E6%B4%B2%E7%99%BD%E3%80%82%0D%0A%E7%8B%AC%E5%A4%9C%E5%BF%86%E7%A7%A6%E5%85%B3%EF%BC%8C+%E5%90%AC%E9%92%9F%E6%9C%AA%E7%9C%A0%E5%AE%A2%E3%80%82+&amp;tags=%E8%AF%97%E8%AF%8D&quot; rel=&quot;2346&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/mooring-at-twilight-in-yuyi-district/feed/</wfw:commentRss><description>落帆逗淮镇， 停舫临孤驿。
浩浩风起波， 冥冥日沈夕。
人归山郭暗， 雁下芦洲白。
独夜忆秦关， 听钟未眠客。</description><category>诗词</category><category>双语诗词</category><pubDate>Mon, 17 Nov 2008 00:11:19 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/mooring-at-twilight-in-yuyi-district/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2346</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/mooring-at-twilight-in-yuyi-district/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254541/5188178</fs:itemid></item><item><title>November 17th</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254542/5188178/1/item.html</link><content:encoded>&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;em&gt;&lt;strong&gt;Today&amp;#8217;s                 Highlight in History: &lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;On November 17th, 1800, Congress                 held its first session in Washington in the                 partially completed Capitol building. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;em&gt;&lt;strong&gt;On this date: &lt;/strong&gt;&lt;/em&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;em&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;In 1558, Elizabeth the First                 ascended the English throne upon the death of                 Queen Mary. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1869, the Suez                 Canal opened in Egypt. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1917, sculptor                 August Rodin died in Meudon, France. (pictured                 left: Rodin sculpture &amp;quot;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#000080&quot;&gt;&lt;strong&gt;The                 Thinker&lt;/strong&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&amp;quot; at La Villa des Brillants,                 Meudon, France)&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1925, actor                 Rock Hudson was born in Winnetka, Illinois. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1934, Lyndon                 Baines Johnson married Claudia Alta Taylor,                 better known as &amp;quot;Lady Bird.&amp;quot; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1962,                 Washington&amp;#8217;s Dulles International Airport was                 dedicated by President Kennedy. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1970, the                 Soviet Union landed an unmanned,                 remote-controlled vehicle on the moon, the                 &amp;quot;Lunokhod One.&amp;quot; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1973, President                 Nixon told Associated Press managing editors                 meeting in Orlando, Florida, &amp;quot;People have                 got to know whether or not their president is a                 crook. Well, I&amp;#8217;m not a crook.&amp;quot; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1979, Iran&amp;#8217;s                 Ayatollah Khomeini ordered the release of 13                 female and black American hostages being held at                 the US Embassy in Tehran. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1997, 62                 people, most of them foreign tourists, were                 killed when six militants opened fire at the                 Temple of Hatshepsut in Luxor, Egypt; the                 attackers were killed by police. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Ten years ago:                 President Bush, on the first visit to                 Czechoslovakia by a US president, told a cheering                 crowd of 100,000 in Prague that &amp;quot;America                 will stand with you&amp;quot; through hard times                 ahead. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Five years ago:                 The commander of US forces in the Pacific called                 the rape of a 12-year-old Okinawan girl                 &amp;quot;absolutely stupid&amp;quot; and said in                 Washington the incident could have been avoided                 if the US servicemen involved had simply paid for                 sex. (Admiral Richard C. Macke later apologized                 for his remarks, and took early retirement.) &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;One year ago:                 Officials close to the investigation into the                 crash of EgyptAir Flight 990 said a relief                 co-pilot alone in the cockpit had said, in                 Arabic: &amp;quot;I made my decision now; I put my                 faith in God&amp;#8217;s hands&amp;quot; just before the                 jetliner began its fatal plunge. (In Egypt,                 relatives angrily rejected any notion that relief                 co-pilot Gameel el-Batouty had deliberately                 crashed the plane.) &lt;/font&gt;&lt;/p&gt;
&lt;hr noshade=&quot;noshade&quot; size=&quot;1&quot; /&gt;
&lt;p align=&quot;center&quot;&gt;&lt;font face=&quot;Arial&quot;&gt;&lt;span class=&quot;thought&quot;&gt;每日格言&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;3&quot;&gt;&lt;strong&gt;&amp;quot;&lt;/strong&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;strong&gt;There&amp;#8217;s one thing                 that keeps surprising you about stormy old                 friends after they die &amp;#8212; their silence.&amp;quot;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;right&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;1&quot;&gt;&lt;em&gt;&amp;#8211;                 Ben Hecht, American author and screenwriter                 (1893-1964). &lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/reading-buddhist-classics-with-zhao-at-his-temple-in-the-early-morning/&quot; title=&quot;晨诣超师院读禅经 柳宗元 &quot;&gt;晨诣超师院读禅经 柳宗元 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/consolation-even-on-a-lonely-snowy-night/&quot; title=&quot;consolation even on a lonely snowy night 雨雪时候的心情－冰心&quot;&gt;consolation even on a lonely snowy night 雨雪时候的心情－冰心&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/nadal-still-needs-improvement/&quot; title=&quot;纳达尔欣喜能迅猛解决战斗 突破美网最佳仍需提高&quot;&gt;纳达尔欣喜能迅猛解决战斗 突破美网最佳仍需提高&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/olympic-logos/&quot; title=&quot;小吴收集的奥运logo&quot;&gt;小吴收集的奥运logo&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/thinking-of-you/&quot; title=&quot;Thinking of You 水调歌头&quot;&gt;Thinking of You 水调歌头&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/the-truth-of-search-engines-ranking/&quot; title=&quot;搜索引擎排名秘笈及优化原理&quot;&gt;搜索引擎排名秘笈及优化原理&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/september-4th/&quot; title=&quot;September 4th&quot;&gt;September 4th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/seeing-li-bai-in-a-dream-i/&quot; title=&quot;梦李白（之一）&amp;#8211;杜甫&quot;&gt;梦李白（之一）&amp;#8211;杜甫&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/mooring-at-twilight-in-yuyi-district/&quot; title=&quot;夕次盱眙县 韦应物 &quot;&gt;夕次盱眙县 韦应物 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/07/dongshan-middle-school-2/&quot; title=&quot;东山中学+东山书院&quot;&gt;东山中学+东山书院&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fnovember-17th%2F&amp;title=November+17th&amp;description=Today%27s+Highlight+in+History%3A%0D%0AOn+November+17th%2C+1800%2C+Congress+held+its+first+session+in+Washington+in+the+partially+completed+Capitol+building.+&amp;tags=&quot; rel=&quot;2344&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/november-17th/feed/</wfw:commentRss><description>Today's Highlight in History:
On November 17th, 1800, Congress held its first session in Washington in the partially completed Capitol building.</description><category>历史上的今天</category><pubDate>Mon, 17 Nov 2008 00:09:55 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/november-17th/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2344</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/november-17th/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254542/5188178</fs:itemid></item><item><title>PHP、MySQL教程（九）</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254543/5188178/1/item.html</link><content:encoded>&lt;table width=&quot;100%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; style=&quot;margin-top: 8px;&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
        &lt;/tr&gt;
&lt;tr&gt;
&lt;td height=&quot;52&quot; width=&quot;6&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
&lt;table width=&quot;100%&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td align=&quot;right&quot;&gt;&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;在我们完成我们的Internet笑话数据库网站的例子的过程中，我们已经研究了许多结构化查询语言(SQL)的大部分问题。从一个CREATE TABLE查询的基本格式，到INSERT查询的两种语法，你现在也许还知道很多这样的命令。&lt;/p&gt;
&lt;p&gt;　　在这一周中，我们将会学习一些新的我们以前没看到过的SQL的技巧，有些是因为的确很先进，也有些仅仅是因为&amp;ldquo;以前没接触过&amp;rdquo;。作为其中的典型情况，绝大部分是对我们已经了解的知识的扩充。让我们先从最复杂也是最容易让人搞糊涂的SQL命令：SELECT查询开始。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;　　对SELECT的结果集进行排序&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　一个信息的长的列表如果能按一定的顺序排列，肯定能给我们带来方便。例如，如果在我们的数据库中有很多注册的作者，要从我们的Authors表 的清单中找到某一个作者肯定是一件比较困难的事。虽然它首先会按数据库中插入的顺序排列(最老的记录在最前面，最新的记录在最后面)，但是你很快会注意到 如果有记录被删除将会打乱这种顺序。&lt;/p&gt;
&lt;p&gt;　　这意味着从最初的SELECT查询得到的结果集的排列顺序并不是让人信赖的。幸运的是，对于SELECT查询有一个可选项可以让我们根据指定的 列对我们的结果集进行排序。以打印出我们的Authors表中的记录的清单为例。我们可以回忆一下，这个表共有三个列：ID、Name和eMail。因为 ID列没有什么实际意义(它仅仅提供了与Jokes表中的作者的一个关联)，我们通常只需要列出剩下的两个列。下面是作者数据表的一个清单：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Name, eMail FROM Authors;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Name | eMail |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Joan Smith | jsmith@somewhere.net |&lt;br /&gt;
                        | Ted E. Bear | ted@e-bear.net |&lt;br /&gt;
                        | Kevin Yank | kevin@sitepoint.com |&lt;br /&gt;
                        | Amy Mathieson | amym@hotmail.com |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　正如你看到的，这些记录并没有按什么顺序排列。对于一个短的清单这也许没什么关系，但是如果我们是从一个很长的作者清单(也许是几百个)中寻找 一个指定的作者(例如是Amy Mathieson)的email地址，能够让作者的姓名按字母顺序排列肯定会对我们有帮助。你可以这样做：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Name, eMail FROM Authors ORDER BY Name;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Name | eMail |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Amy Mathieson | amym@hotmail.com |&lt;br /&gt;
                        | Joan Smith | jsmith@somewhere.net |&lt;br /&gt;
                        | Kevin Yank | kevin@sitepoint.com |&lt;br /&gt;
                        | Ted E. Bear | ted@e-bear.net |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　现在记录是按作者姓名的字母顺序排列的。就象我们可以在SELECT语句中增加一个WHERE子句以过滤结果集一样，我们也可以增加一个ORDER BY子句使得结果集按指定列排序。&lt;/p&gt;
&lt;p&gt;　　在排序的列后面增加DESC关键字，你可以以降序排列这些记录：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Name, eMail FROM Authors ORDER BY Name DESC;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Name | eMail |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Ted E. Bear | ted@e-bear.net |&lt;br /&gt;
                        | Kevin Yank | kevin@sitepoint.com |&lt;br /&gt;
                        | Joan Smith | jsmith@somewhere.net |&lt;br /&gt;
                        | Amy Mathieson | amym@hotmail.com |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　你还可以在ORDER BY子句中使用以逗号分隔的一组列名，以使得记录首先按第一个列排序，对于一个列相同的再按第二个列排序。在ORDER BY子句中列出的任意列都可以使用DESC关键字来颠倒排列顺序。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;　　设置LIMIT&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　我们经常是工作在一个很大的数据表中，但是往往我们只对其中的几条记录感兴趣。假如你是想要统计你的站点中的不同的笑话的受欢迎程序。你可以向 你的Jokes表中增加一个名为TimesViewed的列。对于一个新笑话，它的初始值设为零，而这个笑话每被显示一次，就将这个值加一，这样你就可以 对你的数据库中的每一个笑话被阅读的次数进行记数。&lt;/p&gt;
&lt;p&gt;　　对于指定ID的笑话的TimesViewed列加一的PHP脚本如下：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;$sql = &amp;quot;UPDATE Jokes SET TimesViewed=TimesViewed+1 &amp;quot;.&lt;br /&gt;
                        &amp;quot;WHERE ID=$id&amp;quot;;&lt;br /&gt;
                        if (!mysql_query($sql)) {&lt;br /&gt;
                        echo(&amp;quot;&amp;lt;P&amp;gt;Error adding to times viewed &amp;quot;.&lt;br /&gt;
                        &amp;quot;for this joke!&amp;lt;/P&amp;gt; &amp;quot;);&lt;br /&gt;
                        }&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　利用这个&amp;quot;笑话显示计数&amp;quot;，你可以在你的站点的首页设置&amp;quot;最受欢迎的10个笑话&amp;quot;。使用ORDER BY TimesViewed DESC可以将笑话按TimesViewed从高到低排列，我们仅仅需要取出其中的前十名就行了。但是如果在我们的数据库中有数千个笑话，得到全部的列表 可能是相当浪费处理时间的以及服务器的系统资源(例如内存和CPU的负载)的，因为实际上我们只需要其中的十个。&lt;/p&gt;
&lt;p&gt;　　使用一个LIMIT子句，我们可以指定返回的结果的数目。在我们的这个例子中，我们只需要最先的十个：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;$sql = &amp;quot;SELECT * FROM Jokes ORDER BY TimesViewed DESC LIMIT 10&amp;quot;;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　你也可以不用DESC从而得到最不受欢迎的十个笑话。&lt;/p&gt;
&lt;p&gt;　　通常，你如果想要让用户查看一个很长的记录清单(也就是一个搜索的结果集)，你一次只想为他显示其中的几个。想想你上次使用搜索引擎寻找网站 时，你就可以发现这种做法。你可以使用一个LIMIT子句指定清单显示的开始位置及最大数目来达到这种目的，例如，下面的查询会显示数据库中第21到25 个最受欢迎的笑话：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;$sql = &amp;quot;SELECT * FROM Jokes ORDER BY TimesViewed DESC LIMIT 20, 5&amp;quot;;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　记住，结果集中第一个记录的记录号是0。这样，第21个记录的记录号就是20。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;　　对表进行锁定&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　现在请注意，在上面的UPDATE查询中，我们将TimesViewed的值加一以代替原来的值。&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;$sql = &amp;quot;UPDATE Jokes SET TimesViewed=TimesViewed+1 WHERE ID=$id&amp;quot;;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　如果你不知道可以这样做，你可能会先做一个SELECT来获取当前的值，将其加一，然后用一个UPDATE将计算出来的值取代原来的值。除了这 样做会用到两次查询，从而耗费两倍的时间以外，这种方法还带来了一个危险。如果在你对这个新的值进行计算时，另一个人又查看了同一个笑话，你想想会发生什 么情况？PHP脚本会为新的请求运行第二次。当它执行SELECT获取TimesViewed的&amp;quot;当前值&amp;quot;时，它会获得与第一次执行时一样的值，因为这个 值还没有被更改。于是虽然程序被执行了两次，但是这个值只会被加一。看看发生了什么？两个用户查看了这个笑话，但是TimesViewed只是被加了一 次！&lt;/p&gt;
&lt;p&gt;　　在有些情况下，这种获取-计算-更改的过程是不可避免的，我们必须处理对于同时发生的两个请求可能会造成的冲突(就象我们前面所看到那样)。另 外一种情况是我们有时必须针对同一项事务同时更改几个表(例如，在一个电子商务的网站，我们必须针对一项销售同时更改存货和销售表)。许多高级的数据库服 务(例如Oracle、MS SQL Server等等)支持一种叫做&amp;quot;事务&amp;quot;的特征，这样我们可以将复杂的操作定义为必须同时执行，中间不会被中断。而目前MySQL还不支持事务，但是它有 另一种解决方案！&lt;/p&gt;
&lt;p&gt;　　在执行一个多重查询的操作时，通过对一个表或几个表进行&amp;quot;锁定&amp;quot;，你就可以获得唯一的访问以避免在操作过程中其它同时发生的操作可能造成的破坏。锁定一个表的语法相当简单：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;LOCK TABLES tblName { READ | WRITE }&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　正如前面看到的，当锁定一个表时，你可以指定是&amp;quot;读锁定&amp;quot;还是&amp;quot;写锁定&amp;quot;。前一种可以防止其它进程改变这个表，但是可以允许其它进程读这个表。而后一种将禁止对这个表的所有访问。&lt;/p&gt;
&lt;p&gt;　　当你对一个表进行锁定，工作完成后，你必须对表进行解锁以重新允许其它进程访问这个表：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;UNLOCK TABLES&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　一个LOCK TABLES查询会对以前的其它锁定自动解锁；因此要安全地执行对多个表的操作，你必须用一个命令对所有的表进行锁定。下面是处理我们前面所说的电子商务网站的那种情况的PHP代码：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql_query(&amp;quot;LOCK TABLES inventory WRITE, shipping WRITE&amp;quot;);&lt;br /&gt;
                        // Perform the operation&amp;#8230;&lt;br /&gt;
                        mysql_query(&amp;quot;UNLOCK TABLES&amp;quot;);&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;　　列名和表名的别名&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　在有些情况下，使用不同的名字来代表MySQL的列和表会给我们带来方便。让我们以一个航空公司的在线定票系统的数据库为例。为了表示这个航空 公司所提供的航班，数据库包含两个表：Flights和Cities。在Flights表中的每一条记录表示一个实际的在两个城市之间的航班&amp;#8211;这个航班 的起点和终点。明显地，Origin和Destination应该是Flights中的两个列，而其它的列分别表示航班的日期和时间、飞机类型、航班号以 及各项费用。&lt;/p&gt;
&lt;p&gt;　　Cities表包含了与这个航空公司相关的所有城市的列表。这样，Flights表中的Origin和Destination都仅仅包含对应于Cities表中的记录的ID。现在，让我们看下面的查询。&lt;/p&gt;
&lt;p&gt;　　要得到每个航班的起点：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Flights.Number, Cities.Name&lt;br /&gt;
                        -&amp;gt; FROM Flights, Cities&lt;br /&gt;
                        -&amp;gt; WHERE Flights.Origin = Cities.ID;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&lt;br /&gt;
                        | Number | Name |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&lt;br /&gt;
                        | CP110 | Montreal |&lt;br /&gt;
                        | CP226 | Sydney |&lt;br /&gt;
                        | QF2026 | Melbourne |&lt;br /&gt;
                        &amp;#8230; &amp;#8230;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　要得到每个航班的终点：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Flights.Number, Cities.Name&lt;br /&gt;
                        -&amp;gt; FROM Flights, Cities&lt;br /&gt;
                        -&amp;gt; WHERE Flights.Destination = Cities.ID;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Number | Name |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | CP110 | Sydney |&lt;br /&gt;
                        | CP226 | Montreal |&lt;br /&gt;
                        | QF2026 | Sydney |&lt;br /&gt;
                        &amp;#8230; &amp;#8230;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　现在我们如何通过一个简单的查询来同时获得每个航班的起点和终点呢？我们会试着这样做：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Flights.Number, Cities.Name, Cities.Name&lt;br /&gt;
                        -&amp;gt; FROM Flights, Cities&lt;br /&gt;
                        -&amp;gt; WHERE Flights.Origin = Cities.ID&lt;br /&gt;
                        -&amp;gt; AND Flights.Destination = Cities.ID;&lt;br /&gt;
                        Empty set (0.01 sec)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　为什么没有工作呢？让我们再来看看这个查询，看看它究竟完成了什么功能。我们在Flights和Cities之间建立了连接，并列出了所有 Origin和城市ID匹配而且Destination和城市ID匹配的记录的航班号、城市名和城市名(是的，是两个城市名)。换句话说，Origin、 Destination都必须和城市ID相等！这样的结果是列出所有起点和终点相同的航班！除非你的航空公司提供游览航班，不会有记录满足这个条件(这样 就出现了上面的&amp;quot;Empty set&amp;quot;)。&lt;/p&gt;
&lt;p&gt;　　我们所需要的是一种能够为每一个结果从Cities表中返回两个不同的记录(一个对应起点，另一个对应终点)的方法。如果我们有这个表的两个拷 贝，一个叫做Origins，另一个叫做Destinations，这会容易得多，但是为什么要为同一个城市清单而做两个数据表呢？正确的解决方案是给 Cities两个不同的临时名(别名)以满足这个查询。&lt;/p&gt;
&lt;p&gt;　　通过在SELECT查询的FROM部分的表名后面使用AS Alias，我们可以赋予这个表一个临时名，并可以在查询的其它要用到这个表名的地方使用它。下面我们重新写我们的第一个查询(仅仅显示航班号和起点)， 这一次我们给Cities表赋予了一个别名：Origins.&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Flights.Number, Origins.Name&lt;br /&gt;
                        -&amp;gt; FROM Flights, Cities AS Origins&lt;br /&gt;
                        -&amp;gt; WHERE Flights.Origin = Origins.ID;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　这对查询工作的方法并没有什么实质上的改变&amp;#8211;事实上，它根本就没改变结果。如果我们分别用F和O来作为Flights和Cities的别名。这个查询可以写得更短一些。&lt;/p&gt;
&lt;p&gt;　　现在让我们回到我们的有问题的查询。通过两次使用不同的别名引用Cities表，我们可以使用一个三表连接(其中有两个表实际上是同一个)来获得我们想要的效果：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Flights.Number, Origins.Name,&lt;br /&gt;
                        -&amp;gt; Destinations.Name&lt;br /&gt;
                        -&amp;gt; FROM Flights, Cities AS Origins,&lt;br /&gt;
                        -&amp;gt; Cities AS Destinations&lt;br /&gt;
                        -&amp;gt; WHERE Flights.Origin = Origins.ID&lt;br /&gt;
                        -&amp;gt; AND Flights.Destination = Destinations.ID;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Number | Name | Name |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | CP110 | Montreal | Sydney |&lt;br /&gt;
                        | CP226 | Sydney | Montreal |&lt;br /&gt;
                        | QF2026 | Melbourne | Sydney |&lt;br /&gt;
                        &amp;#8230; &amp;#8230; &amp;#8230;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　你也可以为列名指定别名。例如，我们可以使用这种方法对上面结果中的两个&amp;quot;Name&amp;quot;列进行区分：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT F.Number, O.Name AS Origin,&lt;br /&gt;
                        -&amp;gt; D.Name AS Destination&lt;br /&gt;
                        -&amp;gt; FROM Flights AS F, Cities AS O, Cities AS D&lt;br /&gt;
                        -&amp;gt; WHERE F.Origin = O.ID AND F.Destination = D.ID;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Number | Origin | Destination |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | CP110 | Montreal | Sydney |&lt;br /&gt;
                        | CP226 | Sydney | Montreal |&lt;br /&gt;
                        | QF2026 | Melbourne | Sydney |&lt;br /&gt;
                        &amp;#8230; &amp;#8230; &amp;#8230;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;　　对SELECT的结果集进行分组&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　在第二章中，我们曾经看到过下面的查询，它告诉我们在我们的Jokes表中存储了多少笑话：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT COUNT(*) FROM Jokes;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | COUNT(*) |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | 4 |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　在这个查询中使用的MySQL函数COUNT属于一类特殊的被称之为&amp;quot;集合函数&amp;quot;或&amp;quot;分组函数&amp;quot;的函数。你可以从MySQL参考手册的 7.4.13找到这类函数的全部列表。与其它函数不一样，这些函数会个别地影响SELECT查询结果中每一条记录，集合函数对所有结果进行分组，并返回单 个的结果。在上面的例子中，COUNT返回了结果行的总数。&lt;/p&gt;
&lt;p&gt;　　如果我们想要显示一个作者的列表同时还要显示它们发表的笑话的数目。你的第一个反应将可能是得到所有的作者及其ID，然后对每一个作者的ID使 用SELECT的COUNT函数计算出他们发表的笑话的数目。PHP的代码(为了简单起见，我们没有对错误进行处理)看上去将是这样的：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;// Get a list of all the authors&lt;br /&gt;
                        $authors = mysql_query( &amp;quot;SELECT Name, ID FROM Authors&amp;quot; );&lt;br /&gt;
                        // Process each author&lt;br /&gt;
                        while ($author = mysql_fetch_array($authors)) {&lt;br /&gt;
                        $name = $author[&amp;quot;Name&amp;quot;];&lt;br /&gt;
                        $id = $author[&amp;quot;ID&amp;quot;];&lt;br /&gt;
                        // Get count of jokes attributed to this author&lt;br /&gt;
                        $result = mysql_query(&lt;br /&gt;
                        &amp;quot;SELECT COUNT(*) AS NumJokes &amp;quot;.&lt;br /&gt;
                        &amp;quot;FROM Jokes WHERE AID=$id&amp;quot; );&lt;br /&gt;
                        $row = mysql_fetch_array($result);&lt;br /&gt;
                        $numjokes = $row[&amp;quot;NumJokes&amp;quot;];&lt;br /&gt;
                        // Display the author &amp;amp; number of jokes&lt;br /&gt;
                        echo(&amp;quot;&amp;lt;P&amp;gt;$name ($numjokes jokes)&amp;lt;/P&amp;gt;&amp;quot;);&lt;br /&gt;
                        }&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　请注意在第二个查询中使用了AS对COUNT(*)的结果赋予了一个别名(NumJokes)。&lt;/p&gt;
&lt;p&gt;　　如果采用这种方法，需要n+1个独立的查询(这里n是数据库中作者的数目)。这么多的查询显然是我们不想看到的(如果有很多作者，这段脚本的执行将非常之慢而且还耗费大量的资源！)。幸运的是，SELECT的另一个较为高级的功能可以解决这个问题！&lt;/p&gt;
&lt;p&gt;　　通过在SELECT查询中增加一个GROUP BY子句，你可以要求MySQL对查询结果按指定的列进行分组。而象COUNT这样的集体函数将对这些分组进行操作&amp;#8211;而不再是将结果作为一个整体。例 如，下面的这个单一的查询，就可以列出数据库中每个作者发表的笑话数：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Authors.Name, COUNT(*) AS NumJokes&lt;br /&gt;
                        -&amp;gt; FROM Jokes, Authors&lt;br /&gt;
                        -&amp;gt; WHERE AID = Authors.ID&lt;br /&gt;
                        -&amp;gt; GROUP BY AID;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Name | NumJokes |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Kevin Yank | 3 |&lt;br /&gt;
                        | Joan Smith | 1 |&lt;br /&gt;
                        | Ted E. Bear | 5 |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8211;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　通过将结果集根据作者的ID(AID)进行分组，我们得到了相对于每一个作者的结果。请注意我们也可以指定GROUP BY Authors.ID，这将会得到同样的结果(因为，根据WHERE子句，这两个列必须相等)。在多数情况下，你也可以使用GROUP BY Authors.Name，但是因为我们不能保证不同的作者不会有相同的名字(在这种情况下，这样的作者将会被混淆)，最好是使用ID列，因为这个列对每 个作者是可以保证唯一的。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;　　左连接&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　从上面的结果我们可以看出Kevin Yank有三个笑话，Joan Smith有一个，而Ted E. Bear有五个。这个结果没有显示出我们的第四个作者，Amy Mathieson，她还没有发表任何笑话。因为在Jokes表中没有任何记录的AID与她的ID匹配，所以对于她没有结果满足上面查询中的WHERE子 句，因此在结果集中不包含她。&lt;/p&gt;
&lt;p&gt;　　好象只有一个唯一的方法能解决这个问题，那就是在Authors表中增加另外的一个列以保存每一个作者发表的笑话数。对这个列的维护实在是个痛 苦的事情，因为我们不得不记住每次在Jokes表中添加笑话、删除笑话或者是更新笑话(例如，AID的值发生了改变)时都同时对这个列进行更新。为了保持 同步，每当我们做这样的改变时，我们都得使用LOCK TABLES。这看上去至少相当混乱！&lt;/p&gt;
&lt;p&gt;　　MySQL提供了表连接的另外一种方法，叫做&amp;ldquo;左连接&amp;rdquo;，它就是用来解决这类问题的。要理解左连接和标准的连接有什么不同，我们首先必须回忆一下标准的连接是如何工作的。&lt;/p&gt;
&lt;p&gt;　　MySQL通过列出两个表的所有可能的行的组合来执行两个表的标准连接。一种简单的情况是，对两个各有两行的标准连接会生成四行：表1中的行1 和表2中的行1、表1中的行1和表2中的行2、表1中的行2和表2中的行1以及表1中的行2和表2中的行2。在这个结果的基础上，MySQL再根据 WHERE子句确定哪些行实际被保留(例如，表1中的AID列必须与表2中的ID列匹配)。&lt;/p&gt;
&lt;p&gt;　　而我们的目的是同时显示不与表2(例如，Jokes)中任何行匹配的表1(例如Authors)的行，由于上面的原因，标准连接不能满足我们的 需要。而一个左连接可以实际这样的功能，左连接将强制显示第一个(左手的)表中的所有行，而不考虑这些行是否与第二个(右手的)表中的记录相匹配。对于在 第二个表中没有匹配记录的这样的一些行，在结果集中第二个表的列置为NULL。&lt;/p&gt;
&lt;p&gt;　　在MySQL中要执行两个表的左连接，你必须在FROM子句的两个表名中间用LEFT JOIN分隔，而不是你原来使用的逗号。然后你必须在第二个表名后面使用ON &amp;lt;condition&amp;gt;，这里&amp;lt;condition&amp;gt;定义了两个表中行匹配的标准(也就是你当初放在WHERE子句中的内容)。 这里是我们的经过调整的查询，它用来列出作者及其发表的笑话数：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Authors.Name, COUNT(*) AS NumJokes&lt;br /&gt;
                        -&amp;gt; FROM Authors LEFT JOIN Jokes&lt;br /&gt;
                        -&amp;gt; ON AID = Authors.ID&lt;br /&gt;
                        -&amp;gt; GROUP BY AID;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Name | NumJokes |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Amy Mathieson | 1 |&lt;br /&gt;
                        | Kevin Yank | 3 |&lt;br /&gt;
                        | Joan Smith | 1 |&lt;br /&gt;
                        | Ted E. Bear | 5 |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　稍等一下&amp;#8230;怎么突然Amy Mathieson有了一个笑话？这肯定是不对的！事实上，这个查询仍然是错误的。COUNT(*)对每个作者返回的行进行了记数。如果你看看LEFT JOIN未分组前的结果，你就会明白发生了什么：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Authors.Name, Jokes.ID AS JokeID&lt;br /&gt;
                        -&amp;gt; FROM Authors LEFT JOIN Jokes&lt;br /&gt;
                        -&amp;gt; ON AID = Authors.ID;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8211;+&lt;br /&gt;
                        | Name | JokeID |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8211;+&lt;br /&gt;
                        | Kevin Yank | 1 |&lt;br /&gt;
                        | Kevin Yank | 2 |&lt;br /&gt;
                        | Kevin Yank | 4 |&lt;br /&gt;
                        | Joan Smith | 3 |&lt;br /&gt;
                        | Ted E. Bear | 5 |&lt;br /&gt;
                        | Ted E. Bear | 6 |&lt;br /&gt;
                        | Ted E. Bear | 7 |&lt;br /&gt;
                        | Ted E. Bear | 8 |&lt;br /&gt;
                        | Ted E. Bear | 9 |&lt;br /&gt;
                        | Amy Mathieson | NULL |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8211;+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　明白了吗？Amy Mathieson的确是有一行。事实上，虽然这一行的笑话ID值是NULL，但是这并不影响COUNT(*)&amp;#8211;它仍然将它看作一行来记数。如果在 COUNT函数中你指定一个实际的列名(比如是Jokes.ID)来取代*，它会忽略这一列的 NULL值，正确的查询应该是这样的：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Authors.Name, COUNT(Jokes.ID) AS NumJokes&lt;br /&gt;
                        -&amp;gt; FROM Authors LEFT JOIN Jokes&lt;br /&gt;
                        -&amp;gt; ON AID = Authors.ID&lt;br /&gt;
                        -&amp;gt; GROUP BY AID;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Name | NumJokes |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Amy Mathieson | 0 |&lt;br /&gt;
                        | Kevin Yank | 3 |&lt;br /&gt;
                        | Joan Smith | 1 |&lt;br /&gt;
                        | Ted E. Bear | 5 |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;strong&gt;　　使用HAVING对结果进行限制&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　如果我们仅仅是想要列出没有发表过笑话的作者，我们该怎么做呢？绝大多数用户会做这样的尝试：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Authors.Name, COUNT(Jokes.ID) AS NumJokes&lt;br /&gt;
                        -&amp;gt; FROM Authors LEFT JOIN Jokes&lt;br /&gt;
                        -&amp;gt; ON AID = Authors.ID&lt;br /&gt;
                        -&amp;gt; WHERE NumJokes = 0&lt;br /&gt;
                        -&amp;gt; GROUP BY AID;&lt;br /&gt;
                        ERROR 1054: Unknown column &amp;#8216;NumJokes&amp;#8217; in &amp;#8216;where clause&amp;#8217;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　到现在，你可能不会再奇怪这个查询为什么没能正常工作。:)出错的原因是WHERE NumJokes = 0有错误，因为在WHERE子句中的条件对GROUP BY子句分组前的记录发生了影响。因此如果你在计数时想要排除包含单词&amp;quot;chicken&amp;quot;的笑话，你可以使用WHERE子句；然而，因为NumJokes 列在GROUP BY进行分组前并不存在，我们需要使用另一种方法去设置这个条件。&lt;/p&gt;
&lt;p&gt;　　对分组后的结果发生影响的条件必须用一个特别的HAVING子句来指定。这里是正确的查询：&lt;/p&gt;
&lt;table width=&quot;72%&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=&quot;100%&quot; bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; SELECT Authors.Name, COUNT(Jokes.ID) AS NumJokes&lt;br /&gt;
                        -&amp;gt; FROM Authors LEFT JOIN Jokes&lt;br /&gt;
                        -&amp;gt; ON AID = Authors.ID&lt;br /&gt;
                        -&amp;gt; GROUP BY AID&lt;br /&gt;
                        -&amp;gt; HAVING NumJokes = 0;&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Name | NumJokes |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;br /&gt;
                        | Amy Mathieson | 0 |&lt;br /&gt;
                        +&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;&amp;#8212;+&amp;#8212;&amp;#8212;&amp;#8212;-+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;　　有些条件既可以在HAVING子句中表示也可以在WHERE子句中表示。例如，如果你想要排除一个指定姓名的作者，你既可以在WHERE子句中 使用Authors.Name != &amp;quot;AuthorName&amp;quot;，也可以在HAVING子句中使用Authors.Name != &amp;quot;AuthorName&amp;quot;，因为不论你是在分组发生前还是在分组发生后过滤出这个作者，所得到的结果都是一样的。在这样的情况下，你最好还是使用 WHERE子句，因为MySQL会对这样的查询进行优化以提高速度。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;　　结语&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;　　这一周，为了更好地支持MySQL的使用，我们了解了更多的结构化查询语言(SQL)的知识。我们着重讨论了SELECT的一些特征，利用它， 我们几乎可以随心所欲地显示存储在数据库中的信息。合理地使用SELECT的这些特征，你可以让MySQL更好的工作，并且可以减轻PHP处理的负担。&lt;/p&gt;
&lt;p&gt;　　还有一些查询类型我们没有介绍到(主要是对索引的操作)，MySQL还提供一个完整的内置函数库以完成诸如计算日期和格式化字符串这样的工作。 要想真正精通MySQL，你还必须完成领会MySQL所提供的不同的列类型。例如，TIMESTAMP类型可以用来保存时间。从MySQL指南你可以看到 所有有关这些的完整文档，你也可以参看Paul DuBois的&amp;quot;MySQL&amp;quot; (见我的回顾)。我建议将来你有机会时看看这些文档。&lt;/p&gt;
&lt;p&gt;　　在本教程的最后&amp;#8211;第十章中，我们会学习一些新的有关PHP的有用的特征。安全地发送email、处理文件上载等等。我保证这个结尾是不可错过的。&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/07/dongshan-middle-school-2/&quot; title=&quot;东山中学+东山书院&quot;&gt;东山中学+东山书院&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/10-points-for-url/&quot; title=&quot;SEO:网站地址URL优化的十个要点&quot;&gt;SEO:网站地址URL优化的十个要点&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/september-18th/&quot; title=&quot;September 18th&quot;&gt;September 18th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/smile-of-the-earth/&quot; title=&quot;Smile of the Earth&quot;&gt;Smile of the Earth&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/sql-gradual-18-index/&quot; title=&quot;SQL循序渐进(18)索引&quot;&gt;SQL循序渐进(18)索引&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/september-10th/&quot; title=&quot;September 10th&quot;&gt;September 10th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/genesis-3/&quot; title=&quot;旧约 — 创世记(Genesis)–3&quot;&gt;旧约 — 创世记(Genesis)–3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/from-federer-to-nadal/&quot; title=&quot;新No.1，新纪元！费德勒到纳达尔王朝的完美交接&quot;&gt;新No.1，新纪元！费德勒到纳达尔王朝的完美交接&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/a-new-state/&quot; title=&quot;纳达尔球技人气入新境界 他接替费德勒已无人能反对&quot;&gt;纳达尔球技人气入新境界 他接替费德勒已无人能反对&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/loves-witness/&quot; title=&quot;Love&amp;#8217;s Witness 爱情的见证&quot;&gt;Love&amp;#8217;s Witness 爱情的见证&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fphp-and-mysql-9%2F&amp;title=PHP%E3%80%81MySQL%E6%95%99%E7%A8%8B%EF%BC%88%E4%B9%9D%EF%BC%89&amp;description=%E5%9C%A8%E6%88%91%E4%BB%AC%E5%AE%8C%E6%88%90%E6%88%91%E4%BB%AC%E7%9A%84Internet%E7%AC%91%E8%AF%9D%E6%95%B0%E6%8D%AE%E5%BA%93%E7%BD%91%E7%AB%99%E7%9A%84%E4%BE%8B%E5%AD%90%E7%9A%84%E8%BF%87%E7%A8%8B%E4%B8%AD%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B7%B2%E7%BB%8F%E7%A0%94%E7%A9%B6%E4%BA%86%E8%AE%B8%E5%A4%9A%E7%BB%93%E6%9E%84%E5%8C%96%E6%9F%A5%E8%AF%A2%E8%AF%AD%E8%A8%80%28SQL%29%E7%9A%84%E5%A4%A7%E9%83%A8%E5%88%86%E9%97%AE%E9%A2%98%E3%80%82%E4%BB%8E%E4%B8%80%E4%B8%AACREATE+TABLE%E6%9F%A5%E8%AF%A2%E7%9A%84%E5%9F%BA%E6%9C%AC%E6%A0%BC%E5%BC%8F%EF%BC%8C%E5%88%B0INSERT%E6%9F%A5%E8%AF%A2%E7%9A%84%E4%B8%A4%E7%A7%8D%E8%AF%AD%E6%B3%95...&amp;tags=&quot; rel=&quot;2341&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/php-and-mysql-9/feed/</wfw:commentRss><description>在我们完成我们的Internet笑话数据库网站的例子的过程中，我们已经研究了许多结构化查询语言(SQL)的大部分问题。从一个CREATE TABLE查询的基本格式，到INSERT查询的两种语法...</description><category>LAMP</category><pubDate>Mon, 17 Nov 2008 00:08:20 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/php-and-mysql-9/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2341</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/php-and-mysql-9/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254543/5188178</fs:itemid></item><item><title>旧约 — 创世记(Genesis)–19</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254544/5188178/1/item.html</link><content:encoded>&lt;p&gt;19:1那两个天使晚上到了所多玛。罗得正坐在所多玛城门口，看见他们，就起来迎接，脸伏于地下拜，&lt;br /&gt;
And there came two angels to Sodom at even; and Lot sat in the gate of Sodom: and Lot seeing them rose up to meet them; and he bowed himself with his face toward the ground;&lt;/p&gt;
&lt;p&gt;19:2说，我主阿，请你们到仆人家里洗洗脚，住一夜，清早起来再走。他们说，不，我们要在街上过夜。&lt;br /&gt;
And he said, Behold now, my lords, turn in, I pray you, into your servant&amp;#8217;s house, and tarry all night, and wash your feet, and ye shall rise up early, and go on your ways. And they said, Nay; but we will abide in the street all night.&lt;/p&gt;
&lt;p&gt;19:3罗得切切地请他们，他们这才进去，到他屋里。罗得为他们预备筵席，烤无酵饼，他们就吃了。&lt;br /&gt;
And he pressed upon them greatly; and they turned in unto him, and entered into his house; and he made them a feast, and did bake unleavened bread, and they did eat.&lt;/p&gt;
&lt;p&gt;19:4他们还没有躺下，所多玛城里各处的人，连老带少，都来围住那房子，&lt;br /&gt;
But before they lay down, the men of the city, even the men of Sodom, compassed the house round, both old and young, all the people from every quarter:&lt;/p&gt;
&lt;p&gt;19:5呼叫罗得说，今日晚上到你这里来的人在哪里呢。把他们带出来，任我们所为。&lt;br /&gt;
And they called unto Lot, and said unto him, Where are the men which came in to thee this night? bring them out unto us, that we may know them.&lt;/p&gt;
&lt;p&gt;19:6罗得出来，把门关上，到众人那里，&lt;br /&gt;
And Lot went out at the door unto them, and shut the door after him,&lt;/p&gt;
&lt;p&gt;19:7说，众弟兄，请你们不要作这恶事。&lt;br /&gt;
And said, I pray you, brethren, do not so wickedly.&lt;/p&gt;
&lt;p&gt;19:8我有两个女儿，还是处女，容我领出来，任凭你们的心愿而行。只是这两个人既然到我舍下，不要向他们作什么。&lt;br /&gt;
Behold now, I have two daughters which have not known man; let me, I pray you, bring them out unto you, and do ye to them as is good in your eyes: only unto these men do nothing; for therefore came they under the shadow of my roof.&lt;/p&gt;
&lt;p&gt;19:9众人说，退去吧。又说，这个人来寄居，还想要作官哪。现在我们要害你比害他们更甚。众人就向前拥挤罗得，要攻破房门。&lt;br /&gt;
And they said, Stand back. And they said again, This one fellow came in to sojourn, and he will needs be a judge: now will we deal worse with thee, than with them. And they pressed sore upon the man, even Lot, and came near to break the door.&lt;/p&gt;
&lt;p&gt;19:10只是那二人伸出手来，将罗得拉进屋去，把门关上，&lt;br /&gt;
But the men put forth their hand, and pulled Lot into the house to them, and shut to the door.&lt;/p&gt;
&lt;p&gt;19:11并且使门外的人，无论老少，眼都昏迷。他们摸来摸去，总寻不着房门。&lt;br /&gt;
And they smote the men that were at the door of the house with blindness, both small and great: so that they wearied themselves to find the door.&lt;/p&gt;
&lt;p&gt;19:12二人对罗得说，你这里还有什么人吗。无论是女婿是儿女，和这城中一切属你的人，你都要将他们从这地方带出去。&lt;br /&gt;
And the men said unto Lot, Hast thou here any besides? son in law, and thy sons, and thy daughters, and whatsoever thou hast in the city, bring them out of this place:&lt;/p&gt;
&lt;p&gt;19:13我们要毁灭这地方。因为城内罪恶的声音在耶和华面前甚大，耶和华差我们来，要毁灭这地方。&lt;br /&gt;
For we will destroy this place, because the cry of them is waxen great before the face of the LORD; and the LORD hath sent us to destroy it.&lt;/p&gt;
&lt;p&gt;19:14罗得就出去，告诉娶了（或作将要娶）他女儿的女婿们说，你们起来离开这地方，因为耶和华要毁灭这城。他女婿们却以为他说的是戏言。&lt;br /&gt;
And Lot went out, and spake unto his sons in law, which married his daughters, and said, Up, get you out of this place; for the LORD will destroy this city. But he seemed as one that mocked unto his sons in law.&lt;/p&gt;
&lt;p&gt;19:15天明了，天使催逼罗得说，起来，带着你的妻子和你在这里的两个女儿出去，免得你因这城里的罪恶同被剿灭。&lt;br /&gt;
And when the morning arose, then the angels hastened Lot, saying, Arise, take thy wife, and thy two daughters, which are here; lest thou be consumed in the iniquity of the city.&lt;/p&gt;
&lt;p&gt;19:16但罗得迟延不走。二人因为耶和华怜恤罗得，就拉着他的手和他妻子的手，并他两个女儿的手，把他们领出来，安置在城外。&lt;br /&gt;
And while he lingered, the men laid hold upon his hand, and upon the hand of his wife, and upon the hand of his two daughters; the LORD being merciful unto him: and they brought him forth, and set him without the city.&lt;/p&gt;
&lt;p&gt;19:17领他们出来以后，就说，逃命吧。不可回头看，也不可在平原站住。要往山上逃跑，免得你被剿灭。&lt;br /&gt;
And it came to pass, when they had brought them forth abroad, that he said, Escape for thy life; look not behind thee, neither stay thou in all the plain; escape to the mountain, lest thou be consumed.&lt;/p&gt;
&lt;p&gt;19:18罗得对他们说，我主阿，不要如此，&lt;br /&gt;
And Lot said unto them, Oh, not so, my LORD:&lt;/p&gt;
&lt;p&gt;19:19你仆人已经在你眼前蒙恩。你又向我显出莫大的慈爱，救我的性命。我不能逃到山上去，恐怕这灾祸临到我，我便死了。&lt;br /&gt;
Behold now, thy servant hath found grace in thy sight, and thou hast magnified thy mercy, which thou hast shewed unto me in saving my life; and I cannot escape to the mountain, lest some evil take me, and I die:&lt;/p&gt;
&lt;p&gt;19:20看哪，这座城又小又近，容易逃到，这不是一个小的吗。求你容我逃到那里，我的性命就得存活。&lt;br /&gt;
Behold now, this city is near to flee unto, and it is a little one: Oh, let me escape thither, (is it not a little one?) and my soul shall live.&lt;/p&gt;
&lt;p&gt;19:21天使对他说，这事我也应允你。我不倾覆你所说的这城。&lt;br /&gt;
And he said unto him, See, I have accepted thee concerning this thing also, that I will not overthrow this city, for the which thou hast spoken.&lt;/p&gt;
&lt;p&gt;19:22你要速速地逃到那城。因为你还没有到那里，我不能作什么。因此那城名叫琐珥（琐珥就是小的意思）。&lt;br /&gt;
Haste thee, escape thither; for I cannot do anything till thou be come thither. Therefore the name of the city was called Zoar.&lt;/p&gt;
&lt;p&gt;19:23罗得到了琐珥，日头已经出来了。&lt;br /&gt;
The sun was risen upon the earth when Lot entered into Zoar.&lt;/p&gt;
&lt;p&gt;19:24当时，耶和华将硫磺与火从天上耶和华那里降与所多玛和蛾摩拉，&lt;br /&gt;
Then the LORD rained upon Sodom and upon Gomorrah brimstone and fire from the LORD out of heaven;&lt;/p&gt;
&lt;p&gt;19:25把那些城和全平原，并城里所有的居民，连地上生长的，都毁灭了。&lt;br /&gt;
And he overthrew those cities, and all the plain, and all the inhabitants of the cities, and that which grew upon the ground.&lt;/p&gt;
&lt;p&gt;19:26罗得的妻子在后边回头一看，就变成了一根盐柱。&lt;br /&gt;
But his wife looked back from behind him, and she became a pillar of salt.&lt;/p&gt;
&lt;p&gt;19:27亚伯拉罕清早起来，到了他从前删在耶和华面前的地方，&lt;br /&gt;
And Abraham gat up early in the morning to the place where he stood before the LORD:&lt;/p&gt;
&lt;p&gt;19:28向所多玛和蛾摩拉与平原的全地观看，不料，那地方烟气上腾，如同烧窑一般。&lt;br /&gt;
And he looked toward Sodom and Gomorrah, and toward all the land of the plain, and beheld, and, lo, the smoke of the country went up as the smoke of a furnace.&lt;/p&gt;
&lt;p&gt;19:29当神毁灭平原诸城的时候，他记念亚伯拉罕，正在倾覆罗得所住之城的时候，就打发罗得从倾覆之中出来。&lt;br /&gt;
And it came to pass, when God destroyed the cities of the plain, that God remembered Abraham, and sent Lot out of the midst of the overthrow, when he overthrew the cities in the which Lot dwelt.&lt;/p&gt;
&lt;p&gt;19:30罗得因为怕住在琐珥，就同他两个女儿从琐珥上去，住在山里。他和两个女儿住在一个洞里。&lt;br /&gt;
And Lot went up out of Zoar, and dwelt in the mountain, and his two daughters with him; for he feared to dwell in Zoar: and he dwelt in a cave, he and his two daughters.&lt;/p&gt;
&lt;p&gt;19:31大女儿对小女儿说，我们的父亲老了，地上又无人按着世上的常规进到我们这里。&lt;br /&gt;
And the firstborn said unto the younger, Our father is old, and there is not a man in the earth to come in unto us after the manner of all the earth:&lt;/p&gt;
&lt;p&gt;19:32来，我们可以叫父亲喝酒，与他同寝。这样，我们好从他存留后裔。&lt;br /&gt;
Come, let us make our father drink wine, and we will lie with him, that we may preserve seed of our father.&lt;/p&gt;
&lt;p&gt;19:33于是，那夜她们叫父亲喝酒，大女儿就进去和她父亲同寝。她几时躺下，几时起来，父亲都不知道。&lt;br /&gt;
And they made their father drink wine that night: and the firstborn went in, and lay with her father; and he perceived not when she lay down, nor when she arose.&lt;/p&gt;
&lt;p&gt;19:34第二天，大女儿对小女儿说，我昨夜与父亲同寝。今夜我们再叫他喝酒，你可以进去与他同寝。这样，我们好从父亲存留后裔。&lt;br /&gt;
And it came to pass on the morrow, that the firstborn said unto the younger, Behold, I lay yesternight with my father: let us make him drink wine this night also; and go thou in, and lie with him, that we may preserve seed of our father.&lt;/p&gt;
&lt;p&gt;19:35于是，那夜她们又叫父亲喝酒，小女儿起来与她父亲同寝。她几时躺下，几时起来，父亲都不知道。&lt;br /&gt;
And they made their father drink wine that night also: and the younger arose, and lay with him; and he perceived not when she lay down, nor when she arose.&lt;/p&gt;
&lt;p&gt;19:36这样，罗得的两个女儿都从她父亲怀了孕。&lt;br /&gt;
Thus were both the daughters of Lot with child by their father.&lt;/p&gt;
&lt;p&gt;19:37大女儿生了儿子，给他起名叫摩押，就是现今摩押人的始祖。&lt;br /&gt;
And the first born bare a son, and called his name Moab: the same is the father of the Moabites unto this day.&lt;/p&gt;
&lt;p&gt;19:38小女儿也生了儿子，给他起名叫便亚米，就是现今亚扪人的始祖。&lt;br /&gt;
And the younger, she also bare a son, and called his name Benammi: the same is the father of the children of Ammon unto this day.&lt;/p&gt;
&lt;h3&gt;相关文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-22/&quot; title=&quot;旧约 — 创世记(Genesis)–22&quot;&gt;旧约 — 创世记(Genesis)–22&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-21/&quot; title=&quot;旧约 — 创世记(Genesis)–21 &quot;&gt;旧约 — 创世记(Genesis)–21 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-20/&quot; title=&quot;旧约 — 创世记(Genesis)–20&quot;&gt;旧约 — 创世记(Genesis)–20&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-18/&quot; title=&quot;旧约 — 创世记(Genesis)–18&quot;&gt;旧约 — 创世记(Genesis)–18&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-17/&quot; title=&quot;旧约 — 创世记(Genesis)–17&quot;&gt;旧约 — 创世记(Genesis)–17&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-16/&quot; title=&quot;旧约 — 创世记(Genesis)–16&quot;&gt;旧约 — 创世记(Genesis)–16&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-1-2/&quot; title=&quot;旧约 — 创世记(Genesis)–15&quot;&gt;旧约 — 创世记(Genesis)–15&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-13/&quot; title=&quot;旧约 — 创世记(Genesis)–13&quot;&gt;旧约 — 创世记(Genesis)–13&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-12/&quot; title=&quot;旧约 — 创世记(Genesis)–12&quot;&gt;旧约 — 创世记(Genesis)–12&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/genesis-11/&quot; title=&quot;旧约 — 创世记(Genesis)–11&quot;&gt;旧约 — 创世记(Genesis)–11&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fgenesis-19%2F&amp;title=%E6%97%A7%E7%BA%A6+%E2%80%94+%E5%88%9B%E4%B8%96%E8%AE%B0%28Genesis%29%E2%80%9319&amp;description=19%3A1%E9%82%A3%E4%B8%A4%E4%B8%AA%E5%A4%A9%E4%BD%BF%E6%99%9A%E4%B8%8A%E5%88%B0%E4%BA%86%E6%89%80%E5%A4%9A%E7%8E%9B%E3%80%82%E7%BD%97%E5%BE%97%E6%AD%A3%E5%9D%90%E5%9C%A8%E6%89%80%E5%A4%9A%E7%8E%9B%E5%9F%8E%E9%97%A8%E5%8F%A3%EF%BC%8C%E7%9C%8B%E8%A7%81%E4%BB%96%E4%BB%AC%EF%BC%8C%E5%B0%B1%E8%B5%B7%E6%9D%A5%E8%BF%8E%E6%8E%A5%EF%BC%8C%E8%84%B8%E4%BC%8F%E4%BA%8E%E5%9C%B0%E4%B8%8B%E6%8B%9C%EF%BC%8C%0D%0AAnd+there+came+two+angels+to+Sodom+at+even%3B+and+Lot+sat+in+the+gate+of+Sodom%3A+and+Lot+seeing+them+rose+up+to+meet+them%3B+and+he+bowed+himself+with+his+face+toward+the+ground%3B&amp;tags=Genesis&quot; rel=&quot;2337&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/genesis-19/feed/</wfw:commentRss><description>19:1那两个天使晚上到了所多玛。罗得正坐在所多玛城门口，看见他们，就起来迎接，脸伏于地下拜，
And there came two angels to Sodom at even; and Lot sat in the gate of Sodom: and Lot seeing them rose up to meet them; and he bowed himself with his face toward the ground;</description><category>双语圣经</category><category>Genesis</category><pubDate>Sun, 16 Nov 2008 01:36:52 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/genesis-19/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2337</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/genesis-19/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254544/5188178</fs:itemid></item><item><title>长安遇冯著 韦应物</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254545/5188178/1/item.html</link><content:encoded>&lt;p&gt;客从东方来， 衣上灞陵雨。&lt;/p&gt;
&lt;p&gt;问客何为来， 采山因买斧。&lt;/p&gt;
&lt;p&gt;冥冥花正开， 扬扬燕新乳。&lt;/p&gt;
&lt;p&gt;昨别今已春， 鬓丝生几缕。&lt;/p&gt;
&lt;p&gt;Out of the east you visit me,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With the rain of Baling still on your clothes,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I ask you what you have come here for;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You say: &amp;quot;To buy an ax for cutting wood in the mountains&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;hellip;Hidden deep in a haze of blossom,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Swallow fledglings chirp at ease&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As they did when we parted, a year ago&amp;hellip;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How grey our temples have grown since them!&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/sql-progressive-4-create-table/&quot; title=&quot;SQL循序渐进(4)创建表&quot;&gt;SQL循序渐进(4)创建表&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/november-eighth/&quot; title=&quot;November eighth&quot;&gt;November eighth&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/07/chinese-seo-blog-list/&quot; title=&quot;中文搜索引擎优化（ SEO ） 相关的博客列表&quot;&gt;中文搜索引擎优化（ SEO ） 相关的博客列表&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/nadal-meets-djokovic-again/&quot; title=&quot;2009年戴杯抽签费德勒遇罗迪克 纳达尔小德惨烈火拼&quot;&gt;2009年戴杯抽签费德勒遇罗迪克 纳达尔小德惨烈火拼&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/angle-of-a-boy/&quot; title=&quot;Angle Of A Boy 孩子的守护天使&quot;&gt;Angle Of A Boy 孩子的守护天使&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/davis-cup-nadal-is-the-model/&quot; title=&quot;戴杯联杯周末大作战 重回爱国主义时间纳达尔成楷模&quot;&gt;戴杯联杯周末大作战 重回爱国主义时间纳达尔成楷模&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/07/single-cell/&quot; title=&quot;单细胞生物&quot;&gt;单细胞生物&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/ascending-the-pagoda-at-the-temple-of-kind-favour-with-gao-shi-and-xue-ju/&quot; title=&quot;与高适薛据登慈恩寺浮图 岑参 &quot;&gt;与高适薛据登慈恩寺浮图 岑参 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/august-19th/&quot; title=&quot;August 19th&quot;&gt;August 19th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/november-eleventh/&quot; title=&quot;November eleventh&quot;&gt;November eleventh&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fon-meeting-my-friend-feng-zhu-in-the-capital%2F&amp;title=%E9%95%BF%E5%AE%89%E9%81%87%E5%86%AF%E8%91%97+%E9%9F%A6%E5%BA%94%E7%89%A9&amp;description=%E5%AE%A2%E4%BB%8E%E4%B8%9C%E6%96%B9%E6%9D%A5%EF%BC%8C+%E8%A1%A3%E4%B8%8A%E7%81%9E%E9%99%B5%E9%9B%A8%E3%80%82%0D%0A%E9%97%AE%E5%AE%A2%E4%BD%95%E4%B8%BA%E6%9D%A5%EF%BC%8C+%E9%87%87%E5%B1%B1%E5%9B%A0%E4%B9%B0%E6%96%A7%E3%80%82%0D%0A%E5%86%A5%E5%86%A5%E8%8A%B1%E6%AD%A3%E5%BC%80%EF%BC%8C+%E6%89%AC%E6%89%AC%E7%87%95%E6%96%B0%E4%B9%B3%E3%80%82%0D%0A%E6%98%A8%E5%88%AB%E4%BB%8A%E5%B7%B2%E6%98%A5%EF%BC%8C+%E9%AC%93%E4%B8%9D%E7%94%9F%E5%87%A0%E7%BC%95%E3%80%82+&amp;tags=&quot; rel=&quot;2332&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/on-meeting-my-friend-feng-zhu-in-the-capital/feed/</wfw:commentRss><description>客从东方来， 衣上灞陵雨。
问客何为来， 采山因买斧。
冥冥花正开， 扬扬燕新乳。
昨别今已春， 鬓丝生几缕。</description><category>双语诗词</category><pubDate>Sun, 16 Nov 2008 01:30:35 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/on-meeting-my-friend-feng-zhu-in-the-capital/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2332</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/on-meeting-my-friend-feng-zhu-in-the-capital/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254545/5188178</fs:itemid></item><item><title>寄全椒山中道士 韦应物</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254546/5188178/1/item.html</link><content:encoded>&lt;p&gt;今朝郡斋冷， 忽念山中客。&lt;/p&gt;
&lt;p&gt;涧底束荆薪， 归来煮白石。&lt;/p&gt;
&lt;p&gt;欲持一瓢酒， 远慰风雨夕。&lt;/p&gt;
&lt;p&gt;落叶满空山， 何处寻行迹。&lt;/p&gt;
&lt;p&gt;My office has grown cold today;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And I suddenly think of my mountain friend&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Gathering firewood down in the valley&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or boiling white stones for potatoes in his hut&amp;hellip;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wish I might take him a cup of wine&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To cheer him through the evening storm;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But in fallen leaves that have heaped the bare slopes,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How should I ever find his footprints!&lt;/p&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/october-28th/&quot; title=&quot;October 28th&quot;&gt;October 28th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/consolation-even-on-a-lonely-snowy-night/&quot; title=&quot;consolation even on a lonely snowy night 雨雪时候的心情－冰心&quot;&gt;consolation even on a lonely snowy night 雨雪时候的心情－冰心&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/vsftpd-handbook/&quot; title=&quot;vsftpd小手册&quot;&gt;vsftpd小手册&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/genesis-6/&quot; title=&quot;旧约 — 创世记(Genesis)–6&quot;&gt;旧约 — 创世记(Genesis)–6&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/living-life-over/&quot; title=&quot;Living Life Over&quot;&gt;Living Life Over&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/another-kind-of-love/&quot; title=&quot;另一种爱&quot;&gt;另一种爱&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/beauty/&quot; title=&quot;Beauty 美丽人生&quot;&gt;Beauty 美丽人生&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-18/&quot; title=&quot;旧约 — 创世记(Genesis)–18&quot;&gt;旧约 — 创世记(Genesis)–18&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/august-27th/&quot; title=&quot;August 27th&quot;&gt;August 27th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/virtue/&quot; title=&quot;Virtue 美德 &quot;&gt;Virtue 美德 &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fa-poem-to-a-taoist-hermit-chuanjiao-mountain%2F&amp;title=%E5%AF%84%E5%85%A8%E6%A4%92%E5%B1%B1%E4%B8%AD%E9%81%93%E5%A3%AB+%E9%9F%A6%E5%BA%94%E7%89%A9&amp;description=%E4%BB%8A%E6%9C%9D%E9%83%A1%E6%96%8B%E5%86%B7%EF%BC%8C+%E5%BF%BD%E5%BF%B5%E5%B1%B1%E4%B8%AD%E5%AE%A2%E3%80%82%0D%0A%E6%B6%A7%E5%BA%95%E6%9D%9F%E8%8D%86%E8%96%AA%EF%BC%8C+%E5%BD%92%E6%9D%A5%E7%85%AE%E7%99%BD%E7%9F%B3%E3%80%82%0D%0A%E6%AC%B2%E6%8C%81%E4%B8%80%E7%93%A2%E9%85%92%EF%BC%8C+%E8%BF%9C%E6%85%B0%E9%A3%8E%E9%9B%A8%E5%A4%95%E3%80%82%0D%0A%E8%90%BD%E5%8F%B6%E6%BB%A1%E7%A9%BA%E5%B1%B1%EF%BC%8C+%E4%BD%95%E5%A4%84%E5%AF%BB%E8%A1%8C%E8%BF%B9%E3%80%82&amp;tags=&quot; rel=&quot;2328&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/a-poem-to-a-taoist-hermit-chuanjiao-mountain/feed/</wfw:commentRss><description>今朝郡斋冷， 忽念山中客。
涧底束荆薪， 归来煮白石。
欲持一瓢酒， 远慰风雨夕。
落叶满空山， 何处寻行迹。</description><category>双语诗词</category><pubDate>Sun, 16 Nov 2008 01:27:53 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/a-poem-to-a-taoist-hermit-chuanjiao-mountain/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2328</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/a-poem-to-a-taoist-hermit-chuanjiao-mountain/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254546/5188178</fs:itemid></item><item><title>November 16th</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254547/5188178/1/item.html</link><content:encoded>&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;em&gt;&lt;strong&gt;Today&amp;#8217;s Highlight in                 History: &lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;On November 16th, 1864, Union &lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot; color=&quot;#000080&quot;&gt;&lt;strong&gt;General                 William T. Sherman&lt;/strong&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt; and his troops began their                 &amp;quot;March to the Sea&amp;quot; during the Civil                 War. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;em&gt;&lt;strong&gt;On                 this date: &lt;br /&gt;
&lt;/strong&gt;&lt;/em&gt;In 1776, British troops captured                 Fort Washington during the American Revolution. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1885, Canadian                 rebel Louis Riel was executed for high treason. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1907, Oklahoma                 became the 46th state of the union. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1933, the                 United States and the Soviet Union established                 diplomatic relations. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1959, the                 Rodgers and Hammerstein musical &amp;quot;The Sound                 of Music&amp;quot; opened on Broadway. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1961, House                 Speaker Samuel T. Rayburn died in Bonham, Texas,                 having served as speaker since 1940 except for                 two terms. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1966, Dr.                 Samuel H. Sheppard was acquitted in his second                 trial of charges he&amp;#8217;d murdered his pregnant wife,                 Marilyn, in 1954. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1973,                 &amp;quot;Skylab Three,&amp;quot; carrying a crew of                 three astronauts, was launched from Cape                 Canaveral, Florida, on an 84-day mission. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1973, President                 Nixon signed the Alaska Pipeline measure into                 law. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;In 1982, an                 agreement was announced in the 57th day of a                 strike by National Football League players. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Ten years ago:                 Soviet President Mikhail S. Gorbachev told an                 angry Soviet legislature he would fire government                 and military officials blocking his reform plans.                 Four of the so-called &amp;quot;Keating Five&amp;quot;                 went before the Senate Ethics Committee to deny                 any wrongdoing in helping failed savings-and-loan                 owner Charles H. Keating Junior. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;Five years ago:                 Refusing to yield, President Clinton threatened                 anew to veto the latest Republican offer to end a                 three-day partial government shutdown; Democrats                 savaged House Speaker Newt Gingrich for claiming                 Clinton had snubbed him recently aboard Air Force                 One. Attorney General Janet Reno disclosed she                 has Parkinson&amp;#8217;s disease. &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;One year ago:                 Nathaniel Abraham, at 13 one of the youngest                 murder defendants in US history, was convicted in                 Pontiac, Michigan, of second-degree murder for                 shooting a stranger outside a convenience store                 with a rifle when he was eleven. (Nathaniel was                 sentenced to juvenile detention, with a deferred                 decision on whether he will serve adult prison                 time.) &lt;/font&gt;&lt;/p&gt;
&lt;hr noshade=&quot;noshade&quot; size=&quot;1&quot; /&gt;
&lt;p align=&quot;center&quot;&gt;&lt;font face=&quot;Arial&quot;&gt;&lt;span class=&quot;thought&quot;&gt;每日格言&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;3&quot;&gt;&lt;strong&gt;&amp;quot;&lt;/strong&gt;&lt;/font&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;strong&gt;History is a                 combination of reality and lies. The reality of                 History becomes a lie. The unreality of the fable                 becomes the truth.&amp;quot;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align=&quot;right&quot;&gt;&lt;font face=&quot;Arial&quot; size=&quot;1&quot;&gt;&lt;em&gt;&amp;#8211;                 Jean Cocteau (zhan kawk-toh&amp;#8217;), French author,                 director, poet (1889-1963). &lt;/em&gt;&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/08/life-benefit/&quot; title=&quot;受益一生&quot;&gt;受益一生&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/september-26th/&quot; title=&quot;September 26th&quot;&gt;September 26th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/better-late-than-never/&quot; title=&quot;Better late than never&quot;&gt;Better late than never&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/nadal-won-again/&quot; title=&quot;纳达尔送蛋横扫挺进美网16强 奎雷伊淘汰卡洛维奇&quot;&gt;纳达尔送蛋横扫挺进美网16强 奎雷伊淘汰卡洛维奇&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/mother-machree/&quot; title=&quot;Mother Machree 慈母颂&quot;&gt;Mother Machree 慈母颂&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/07/f1/&quot; title=&quot;没事看看F1&quot;&gt;没事看看F1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/07/is-google-crossing-the-line-with-knol/&quot; title=&quot;Is Google Crossing the Line with Knol? &quot;&gt;Is Google Crossing the Line with Knol? &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/the-art-of-war/&quot; title=&quot;《孙子兵法》十三篇&quot;&gt;《孙子兵法》十三篇&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/september-23rd/&quot; title=&quot;September 23rd&quot;&gt;September 23rd&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/love-is-so-shortforgetting-is-so-long/&quot; title=&quot;Love is so short,forgetting is so long.爱情太短，遗忘太长。&quot;&gt;Love is so short,forgetting is so long.爱情太短，遗忘太长。&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fnovember-16th%2F&amp;title=November+16th&amp;description=Today%27s+Highlight+in+History%3A%0D%0AOn+November+16th%2C+1864%2C+Union+General+William+T.+Sherman+and+his+troops+began+their+%22March+to+the+Sea%22+during+the+Civil+War&amp;tags=&quot; rel=&quot;2325&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/november-16th/feed/</wfw:commentRss><description>Today's Highlight in History:
On November 16th, 1864, Union General William T. Sherman and his troops began their &quot;March to the Sea&quot; during the Civil War</description><category>历史上的今天</category><pubDate>Sun, 16 Nov 2008 01:25:39 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/november-16th/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2325</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/november-16th/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254547/5188178</fs:itemid></item><item><title>PHP、MySQL教程</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254548/5188178/1/item.html</link><content:encoded>&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;b&gt;PHP、MySQL教程&lt;/b&gt;&lt;/p&gt;
&lt;hr size=&quot;1&quot; /&gt;
&lt;p&gt;&lt;img hspace=&quot;10&quot; vspace=&quot;10&quot; border=&quot;0&quot; align=&quot;left&quot; hsapce=&quot;10&quot; src=&quot;/download/picture/phpmysql.jpg&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;　 　PHP是一个服务器端的脚本语言。你可以将其理解成&amp;ldquo;插件&amp;rdquo;，通过这个&amp;ldquo;插件&amp;rdquo;，你的Web服务器可以在接到浏览器的请求后不再仅仅发出一个文本的 Web页面。安装了PHP后，你的Web服务器可以阅读一种新的类型的文件（PHP脚本），通过这种文件，服务器可以在响应浏览器的请求之前从数据库中读 取实时的信息并将其加入到Web页面中去。要从一个数据库中获取信息，你首先需要拥有一个数据库，这时我们就得提到MySQL了。MySQL是一个精巧的 SQL数据库管理系统，虽然它不是开放源代码的产品，但在某些情况下你可以自由使用。由于它的强大功能、灵活性、丰富的应用编程接口（API）以及精巧的 系统结构，受到了广大自由软件爱好者甚至是商业软件用户的青睐，特别是与Apache和PHP/PERL结合，为建立基于数据库的动态网站提供了强大动 力。&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt;&lt;a target=&quot;_blank&quot; href=&quot;http://myleave.cn/index.php/2008/11/install-php-and-mysql/&quot;&gt;&lt;strong&gt;&lt;br /&gt;
&lt;/strong&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;../../../../../index.php/2008/11/mysql-management/&quot; title=&quot;第八节：MySQL管理&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt;第八节：MySQL管理&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt; &lt;br /&gt;
    &lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../../../../index.php/2008/11/form-and-post-of-content/&quot; title=&quot;第七节：内容的格式和提交篇&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt;第七节：内容的格式和提交篇&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt; &lt;br /&gt;
    &lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../../../../index.php/2008/11/content-management-system/&quot; title=&quot;第六节：内容管理系统&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt;第六节：内容管理系统&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt; &lt;br /&gt;
    &lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../../../../index.php/2008/11/relational-database-management-system/&quot; title=&quot;第五节：关系型数据库设计&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt;第五节：关系型数据库设计&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt; &lt;br /&gt;
    &lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../../../../index.php/2008/11/visit-mysql-by-php/&quot; title=&quot;第四节：PHP访问MySQL篇&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt;第四节：PHP访问MySQL篇&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt; &lt;br /&gt;
    &lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../../../../index.php/2008/11/php/&quot; title=&quot;第三节：PHP入门篇&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt;第三节：PHP入门篇&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt; &lt;br /&gt;
    &lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../../../../index.php/2008/11/mysql/&quot; title=&quot;第二节：MySQL入门篇&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt;第二节：MySQL入门篇&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt; &lt;br /&gt;
    &lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;../../../../../index.php/2008/11/install-php-and-mysql/&quot; title=&quot;第一节：PHP、MySQL安装篇&quot; target=&quot;_blank&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: rgb(153, 204, 0);&quot;&gt;第一节：PHP、MySQL安装篇&lt;/span&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/genesis-22/&quot; title=&quot;旧约 — 创世记(Genesis)–22&quot;&gt;旧约 — 创世记(Genesis)–22&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/thinking-of-you/&quot; title=&quot;Thinking of You 水调歌头&quot;&gt;Thinking of You 水调歌头&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/nadal-had-a-narrow-escape/&quot; title=&quot;纳达尔马拉松大战惊险过关 淘汰新星再进美网8强&quot;&gt;纳达尔马拉松大战惊险过关 淘汰新星再进美网8强&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/advancing-secretly-by-an-unknown-path/&quot; title=&quot;第八计 暗渡陈仓&quot;&gt;第八计 暗渡陈仓&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/nothing-serious-with-federer/&quot; title=&quot;背伤无碍费德勒盼纳达尔康复 坦言温网失利很受伤&quot;&gt;背伤无碍费德勒盼纳达尔康复 坦言温网失利很受伤&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/september-21st/&quot; title=&quot;September 21st&quot;&gt;September 21st&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/10-truthes-found-by-google/&quot; title=&quot;Google 发现的十大真理&quot;&gt;Google 发现的十大真理&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/shower-with-your-girlfriend/&quot; title=&quot;Shower with your girlfriend&quot;&gt;Shower with your girlfriend&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/october-24th/&quot; title=&quot;October 24th&quot;&gt;October 24th&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/run-through-the-rain/&quot; title=&quot;Run Through the Rain 雨中的记忆 &quot;&gt;Run Through the Rain 雨中的记忆 &lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Flectures-of-php-and-mysql%2F&amp;title=PHP%E3%80%81MySQL%E6%95%99%E7%A8%8B&amp;description=PHP%E6%98%AF%E4%B8%80%E4%B8%AA%E6%9C%8D%E5%8A%A1%E5%99%A8%E7%AB%AF%E7%9A%84%E8%84%9A%E6%9C%AC%E8%AF%AD%E8%A8%80%E3%80%82%E4%BD%A0%E5%8F%AF%E4%BB%A5%E5%B0%86%E5%85%B6%E7%90%86%E8%A7%A3%E6%88%90%E2%80%9C%E6%8F%92%E4%BB%B6%E2%80%9D%EF%BC%8C%E9%80%9A%E8%BF%87%E8%BF%99%E4%B8%AA%E2%80%9C%E6%8F%92%E4%BB%B6%E2%80%9D%EF%BC%8C%E4%BD%A0%E7%9A%84Web%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%8F%AF%E4%BB%A5%E5%9C%A8%E6%8E%A5%E5%88%B0%E6%B5%8F%E8%A7%88%E5%99%A8%E7%9A%84%E8%AF%B7%E6%B1%82%E5%90%8E%E4%B8%8D%E5%86%8D%E4%BB%85%E4%BB%85%E5%8F%91%E5%87%BA%E4%B8%80%E4%B8%AA%E6%96%87%E6%9C%AC%E7%9A%84+Web%E9%A1%B5%E9%9D%A2%E3%80%82%E5%AE%89%E8%A3%85%E4%BA%86PHP%E5%90%8E...&amp;tags=&quot; rel=&quot;2215&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/lectures-of-php-and-mysql/feed/</wfw:commentRss><description>PHP是一个服务器端的脚本语言。你可以将其理解成“插件”，通过这个“插件”，你的Web服务器可以在接到浏览器的请求后不再仅仅发出一个文本的 Web页面。安装了PHP后...</description><category>LAMP</category><pubDate>Sun, 16 Nov 2008 01:24:16 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/lectures-of-php-and-mysql/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2215</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/lectures-of-php-and-mysql/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254548/5188178</fs:itemid></item><item><title>第八节：MySQL管理</title><link>http://item.feedsky.com/~feedsky/Arthur1989/~7079859/183254549/5188178/1/item.html</link><content:encoded>&lt;p style=&quot;text-indent: 2em;&quot;&gt;对于内容驱动的网站，设计好坏的关键是关系型数据库。在这个教程中，我们已经使用了 MySQL关系型数据库管理系统(RDBMS)建立了我们的数据库。对于网站的开发者来说，MySQL是一个较受欢迎的选择，这不仅是因为它对于任何平台 上的非商业应用都是免费的，而且也因为它的架设和使用非常的简单。正如我们在第一章中所看到的那样，根据正确的指导，一个新的用户可以在不超过30分钟的 时间内架设好一个MySQL服务，并将其运行起来(对于一个有经验的用户甚至只要10分钟！)。&lt;/p&gt;
&lt;p&gt;&lt;script src=&quot;http://tech.tom.com/script/ad.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;br /&gt;
&lt;script src=&quot;http://ad.tom.com/zhf/pip/techpip.js&quot; language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;如 果你想做的仅仅是架设一个MySQL服务环境，以用来做一些例子和练习，那么我们在第一章安装时所使用的初始化设置对你已经足够了。但是，如果你是想建立 一个真正的用于Web站点的数据库&amp;#8211;也许这个站点对于你的公司很重要&amp;#8211;那么你还需要学习一些有关MySQL的知识。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;对 于作为基于Internet的企业的一部分的商业事务来说，数据的备份是很重要的。不幸的是，因为备份的工作对于一个管理员来说往往是不太感兴趣的，人们 总是无法认清它的重要性，于是这方面的工作对于一个应用程序往往不能做得&amp;ldquo;足够好&amp;rdquo;。如果直到现在你还不明白&amp;ldquo;我们是不是需要备份我们的数据库&amp;rdquo;，或者是 你认为&amp;ldquo;数据库会和其它东西一起被备份&amp;rdquo;，那么你得好好看看这一章的内容了。我们将会说明为什么普通的文件备份方案对于许多MySQL服务是远远不够的， 然后我们会介绍备份和恢复一个MySQL数据库的&amp;ldquo;正确的方法&amp;rdquo;。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;在第一章中，我们 设置了一个MySQL服务并通过一个有口令的&amp;lsquo;root&amp;rsquo;来连接这个数据库。MySQL的&amp;lsquo;root&amp;rsquo;用户(顺便提一下，不要与Unix的&amp;lsquo;root&amp;rsquo;用 户混淆)对于所有的库和表都有读/写的权限。在许多情况下，我们需要建立其它的只能访问某些数据库和数据表的用户，我们还需要对这种访问进行限制(例如， 对指定的表只能直接只读访问)。在这一章中，我们将学习如果使用两个新的MySQL的命令：GRANT和REVOKE来完成这些工作。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;在一些情况下，例如由于电源的问题，MySQL数据库可能被损坏。这样的损坏并不总是意味着必须使用备份来恢复。我们将会学习到如果利用MySQL数据库的检查和修复功能来解决简单的数据库损坏。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;b&gt;为什么标准的备份是不够的&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;和 Web服务器一样，绝大多数的MySQL服务器也必须不间断地在线。这使得MySQL数据库的备份显得很重要。因为MySQL服务使用cache和缓冲区 来提高对存储在磁盘上的数据库文件更新的效率，所以文件的内容和当前数据库的内容可能并不完全一致。而标准的备份程序仅仅包括对系统和数据文件的拷贝，这 种对MySQL数据文件的备份并不能完全满足我们的需要，因为它们不能保证拷贝的文件可以在系统崩溃时的确能够正常地使用。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;此 外，因为许多的数据库必须整天地接受信息，标准的备份只能提供数据库数据的&amp;ldquo;瞬间的&amp;rdquo;映象。如果MySQL数据库文件被损坏，或是变得不可用，在最后一次 备份之后添加的信息将会被丢失。在许多情况下，例如对于一个电子商务网站的处理用户订单的数据库，这样的丢失是不可容忍的。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;MySQL 中的工具可以对数据进行实时的备份，而在备份进行时，不会影响服务的效率。不幸的是，这需要你 为你的MySQL数据配置一个特殊的备份系统。而完全与你已制定的其它数据备份方案无关。然而，和任何一个好的备份系统一样，在你真正用到它的时候，你会 发现现在的麻烦是值得的。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;在这一章中，我们提供的指导是用于一个运行Linux或其它基于Unix的操作系统的计算机上的。如果你使用的是Windows，方法也基本上一样，只是其中的有些命令必须改动。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;b&gt;使用mysqldump进行数据库备份&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;除了mysqld以外，MySQL服务器以及mysql(MySQL的客户端)，在安装时还会产生很多有用的程序。例如，在前面，我们已经看到的mysqladmin，就是负责控制和搜集有关正在运行的MySQL服务的信息的程序。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;mysqldump 是另一个这样的程序。当它运行时，它会连接到一个MySQL服务(就和mysql程序和PHP语言所做的一样)并下载指定的数据库的全部内容。然后它会输 出一系列的SQL的CREATE TABLE命令和INSERT命令，在一个空的MySQL数据库中运行这些命令，就可以建立与当初的数据库内容完全一样的一个MySQL数据库。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;通 过重定向mysqldump的输出到一个文件，你可以存储一个数据库的&amp;ldquo;镜像&amp;rdquo;以作为备份。下面的命令是用一个口令为mypass的root用户连接到一 个运行在myhost上的MySQL服务，并将名为dbname的数据库的备份存储到dbname_backup.sql文件中：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% mysqldump -h myhost -u root -pmypass dbname &amp;gt; dbname_backup.sql&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;要恢复这样的一个数据库，只需要运行下面的命令：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% mysqladmin -h myhost -u root -pmypass create dbname&lt;br /&gt;
            % mysql -h myhost -u root -pmypass dbname &amp;lt; dbname_backup.sql&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;第一个命令使用mysqladmin程序建立一个数据库。第二个命令连接到MySQL服务并使用通常的mysql程序，并将刚才得到的备份文件作为其中执行的命令。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;通 过这种方法，我们可以使用mysqldump建立我们数据库的备份。因为mysqldump通过与MySQL服务的连接产生这个备份，这肯定要比直接访问 MySQL数据目录下的数据库文件来得更为安全，因为这样的备份可以确保是数据库的一个有效的拷贝，而不仅仅是数据库文件的拷贝。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;剩下来的问题就是如何解决这个&amp;ldquo;镜像&amp;rdquo;与一个不断更新的数据库之间的同步。要做到这一点，你需要命令服务保持一个变更日志。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;b&gt;利用变更日志进行增量备份&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;正 如我们前面提到的，在很多情况下，我们使用的MySQL数据库会造成数据的丢失&amp;#8211;甚至有的时候会丢失很重要的数据。在这样的情况下，我们必须找到一种方 法保持我们使用上面介绍的方法用mysqldump制作的备份与当前数据库之间的同步。而解决方案就是让MySQL服务维持一个更新日志。一个更新日志是 一个关于所有数据库接受到的可能改变数据库内容的查询的记录。这将包括INSERT、UPDATE和CREATE &lt;br /&gt;
TABLE语句，但是不包括SELECT语句。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;通常的想法是维持一个变更日志，这样当数据库崩溃时，你的恢复过程应该是这样的：首先使用备份(使用mysqldump命令产生)，然后使用备份之后的变量日志。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;你 也可以使用变更日志撤消错误操作。例如，如果一个合作者告诉你他错误地使用了一个DROP TABLE命令，你可以对变更日志进行编辑以删除这个命令，然后使用备份和修改过的变更日志进行恢复。通过这种方法，你甚至可以保持这次意外事故之后其它 表的变化。作为预防措施，你也许还要收回你的合作者的 &lt;br /&gt;
DROP权限(在下一部分你将看到该怎么做)。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;告诉MySQL服务器维持一个变更日志是非常简单的，你只需要在服务的命令行中增加一个选项：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% safe-mysqld &amp;#8211;log-update=update&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;上 面的命令启动MySQL服务，并告诉它在服务器的数据目录下(如果你依照第一章中指导配置你的服务器的话，这个目录将是/usr/local/mysql /var)建立名为update.001、update.002&amp;hellip;&amp;hellip;的文件。一个新的这样的文件将在服务器每一次刷新它的日志文件时被建立(通常，这是指 服务每一次重启动时)。如果你想将你的变更日志存储到另一个地方(通常这是一个好主意&amp;#8211;如果包含你的数据目录的磁盘出了问题，你肯定不能指望它还能好好 保存你的备份！)，你可以指定变更日志的路径。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;但是，如果你的MySQL服务器是不间断地工作的，在启动MySQL服务时你也许还需要一些系统配置。在这种情况下，增加一个命令行选择可能变得很困难。建立变更日志的另一个简单的方法是在MySQL配置文件中增加相应的选项。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;如 果你还不清楚&amp;quot;什么是MySQL配置文件&amp;quot;，不要担心。事实上，在此之前，我们一直没用到过这样的配置文件。要建立这个文件，以我们在第一章中建立的 MySQL用户(如果你是完全根据指导做的，这应该是mysqlusr)登录到Linux。使用你习惯的文本编辑器，在你的MySQL数据目录下(除非你 选择了其它地方安装MySQL，这应该是指/usr/local/mysql/var)建立一个名为my.cnf的文件。在这个文件中，输入下面一行：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;[mysqld]log-update=/usr/backups/mysql/update&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;当然，你可以自由地指定你的日志文件所写入的位置。保存这个文件并重启你的MySQL服务。从现在开始，MySQL服务运行的情况将和你在命令行中使用了&amp;#8211;log-update选项一样。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;很明显，对于一个服务来说，变更日志可能占用大量的空间。因为这个原因以及MySQL不能自动地在建立新的日志文件删除旧的日志文件，你需要自己管理你的变更日志文件。例如，下面的Unix &lt;br /&gt;
shell脚本，会删除所有一星期以前更改的变更日志文件，然后通知MySQL刷新它的日志文件。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;#! /bin/sh&lt;br /&gt;
            find /usr/backups/mysql/ -name &amp;quot;update.[0-9]*&amp;quot;&lt;br /&gt;
            -type f -mtime +6 | xargs rm -f&lt;br /&gt;
            /usr/local/mysql/bin/mysqladmin -u root&lt;br /&gt;
            -ppassword flush-logs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;如果当前的日志文件被删除，最后一步(刷新日志文件)将建立一个新的变更日志，这意味着MySQL服务一直在线，而且在过去的一周中，没有收到任何改变数据库内容的查询。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;如果你是一个有经验的用户，使用&amp;ldquo;时钟守护程序&amp;rdquo;设置一个脚本来定期(比方说，每周一次)执行数据库的备份并删除旧的变更日志应该是相当简单的。如果你还需要一点帮助，请教你当地的Unix权威。&amp;#8217;MySQL&amp;#8217; &lt;br /&gt;
by Paul DuBois中的MySQL管理一章中对设置这样的一个系统也有详细的指南。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;假 定你已经有了一个备份以及在此之后的变更日志的一个拷贝，恢复你的数据库将是非常简单的。在建立一个空数据库后应用我们在上一节中讨论的方法导入备份，然 后使用带&amp;#8211;one-database命令行选项的mysql命令导入变更日志。这会指示服务器仅仅运行变更日志中与我们想要恢复的数据库(在这个例子中 是指dbname)相关的查询：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% mysql -u root -ppassword &amp;#8211;one-database dbname &amp;lt; update.100&lt;br /&gt;
            % mysql -u root -ppassword &amp;#8211;one-database dbname &amp;lt; update.102&lt;br /&gt;
            &amp;#8230;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;b&gt;MySQL访问控制&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;在 这个教程的早些时候，我们曾经提到一个叫做mysql的数据库，在每一个MySQL服务中都包含这个数据库，它是用来保存用户的相关信息、他们的口令以及 他们的权限的。但是，在此之前，我们一直使用root用户登录到MySQL服务，这个用户可以访问所有的数据库和数据表。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;如 果你的MySQL服务仅仅被通过PHP访问，而用你对于将root用户的口令告诉什么人很小心，那么root帐号可能已经足够了。但是，如果一个 MySQL服务是被许多人共享的，(例如，一个Web主机希望对它的每一个用户提供同一个MySQL服务)，为不同的用户设置相应的访问权限就显得很重要 了。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;在MySQL参考手册的第六章中详细介绍了MySQL的访问控制系统。从原理上 来说，用户的访问是由mysql数据库中的五个数据表来管理的：user、db、host、tables_priv和columns_priv。如果你想 直接使用INSERT、UPDATE和DELETE语句来编辑这些表，我建议你先阅读一下MySQL指南中的相关章节。而从3.22.11版本开 始，MySQL提供了简单的方法来管理用户的访问。使用MySQL提供的非标准的命令GRANT和REVOKE，你可以建立用户并赋予其相应的权限，而不 必关心它在前面提到的五个表中的存储形式。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;使用GRANT&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;GRANT命令用来建立新用户，指定用户口令并增加用户权限。其格式如下：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; GRANT &amp;lt;privileges&amp;gt; ON &amp;lt;what&amp;gt;&lt;br /&gt;
            -&amp;gt; TO &amp;lt;user&amp;gt; [IDENTIFIED BY &amp;quot;&amp;lt;password&amp;gt;&amp;quot;]&lt;br /&gt;
            -&amp;gt; [WITH GRANT OPTION];&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;正如你看到的，在这个命令中有许多待填的内容。让我们逐一地对它们进行介绍，并最终给出一些例子以让你对它们的协同工作有一个了解。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&amp;lt;privileges&amp;gt;是一个用逗号分隔的你想要赋予的权限的列表。你可以指定的权限可以分为三种类型：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;数据库/数据表/数据列权限：&lt;br /&gt;
ALTER: 修改已存在的数据表(例如增加/删除列)和索引。&lt;br /&gt;
CREATE: 建立新的数据库或数据表。&lt;br /&gt;
DELETE: 删除表的记录。&lt;br /&gt;
DROP: 删除数据表或数据库。&lt;br /&gt;
INDEX: 建立或删除索引。&lt;br /&gt;
INSERT: 增加表的记录。&lt;br /&gt;
SELECT: 显示/搜索表的记录。&lt;br /&gt;
UPDATE: 修改表中已存在的记录。&lt;br /&gt;
全局管理权限：&lt;br /&gt;
FILE: 在MySQL服务器上读写文件。&lt;br /&gt;
PROCESS: 显示或杀死属于其它用户的服务线程。&lt;br /&gt;
RELOAD: 重载访问控制表，刷新日志等。&lt;br /&gt;
SHUTDOWN: 关闭MySQL服务。&lt;br /&gt;
特别的权限：&lt;br /&gt;
ALL: 允许做任何事(和root一样)。&lt;br /&gt;
USAGE: 只允许登录&amp;#8211;其它什么也不允许做。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;这些权限所涉及到的MySQL的特征，其中的一些我们至今还没看到，而其中的绝大部分是你所熟悉的。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&amp;lt;what&amp;gt; 定义了这些权限所作用的区域。*.*意味着权限对所有数据库和数据表有效。dbName.*意味着对名为dbName的数据库中的所有数据表有效。 dbName.tblName意味着仅对名为dbName中的名为tblName的数据表有效。你甚至还可以通过在赋予的权限后面使用圆括号中的数据列的 列表以指定权限仅对这些列有效(在后面我们将看到这样的例子)。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&amp;lt;user&amp;gt;指定可以应用这些权限的用户。在MySQL中，一个用户通过它登录的用户名和用户使用的计算机的主机名/IP地址来指定。这两个值都可以使用%通配符(例如kevin@%将允许使用用户名kevin从任何机器上登录以享有你指定的权限)。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&amp;lt;password&amp;gt; 指定了用户连接MySQL服务所用的口令。它被用方括号括起，说明IDENTIFIED BY &amp;quot;&amp;lt;password&amp;gt;&amp;quot;在GRANT命令中是可选项。这里指定的口令会取代用户原来的密码。如果没有为一个新用户指定口令，当他进行连接时 就不需要口令。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;这个命令中可选的WITH GRANT OPTION部分指定了用户可以使用GRANT/REVOKE命令将他拥有的权限赋予其他用户。请小心使用这项功能&amp;#8211;虽然这个问题可能不是那么明显！例 如，两个都拥有这个功能的用户可能会相互共享他们的权限，这也许不是你当初想看到的。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;让我们来看两个例子。建立一个名为dbmanager的用户，他可以使用口令managedb从server.host.net连接MySQL，并仅仅可以访问名为db的数据库的全部内容(并可以将此权限赋予其他用户)，这可以使用下面的GRANT命令：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; GRANT ALL ON db.*&lt;br /&gt;
            -&amp;gt; TO dbmanager@server.host.net&lt;br /&gt;
            -&amp;gt; IDENTIFIED BY &amp;quot;managedb&amp;quot;&lt;br /&gt;
            -&amp;gt; WITH GRANT OPTION;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;现在改变这个用户的口令为funkychicken，命令格式如下：&lt;br /&gt;
mysql&amp;gt; GRANT USAGE ON *.*&lt;br /&gt;
-&amp;gt; TO dbmanager@server.host.net&lt;br /&gt;
-&amp;gt; IDENTIFIED BY &amp;quot;funkychicken&amp;quot;;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;请注意我们没有赋予任何另外的权限(the USAGE权限只能允许用户登录)，但是用户已经存在的权限不会被改变。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;现 在让我们建立一个新的名为jessica的用户，他可以从host.net域的任意机器连接到MySQL。他可以更新数据库中用户的姓名和email地 址，但是不需要查阅其它数据库的信息。也就是说他对db数据库具有只读的权限(例如，SELECT)，但是他可以对Users表的name列和email 列执行UPDATE操作。命令如下：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; GRANT SELECT ON db.*&lt;br /&gt;
            -&amp;gt; TO jessica@%.host.net&lt;br /&gt;
            -&amp;gt; IDENTIFIED BY &amp;quot;jessrules&amp;quot;;&lt;br /&gt;
            mysql&amp;gt; GRANT UPDATE (name,email) ON db.Users&lt;br /&gt;
            -&amp;gt; TO jessica@%.host.net;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;请 注意在第一个命令中我们在指定Jessica可以用来连接的主机名时使用了%(通配符)符号。此外，我们也没有给他向其他用户传递他的权限的能力，因为我 们在命令的最后没有带上WITH GRANT OPTION。第二个命令示范了如何通过在赋予的权限后面的圆括号中用逗号分隔的列的列表对特定的数据列赋予权限。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;使用REVOKE&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;正如你所预期的那样，REVOKE命令是用来去除一个用户以前被赋予的权限的。命令的语法如下：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; REVOKE &amp;lt;privileges&amp;gt; [(&amp;lt;columns&amp;gt;)]&lt;br /&gt;
            -&amp;gt; ON &amp;lt;what&amp;gt; FROM &amp;lt;user&amp;gt;;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;这个命令中各部分的功能和在上面的GRANT命令中时一样。要去除Jessica的合作者的DROP权限(例如，如果他经常错误地删除数据库和表)，你可以使用下面的命令：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; REVOKE DROP ON *.* FROM idiot@%.host.net;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;去除一个用户的登录权限大概是唯一不能使用REVOKE的。REVOKE ALL ON *.*会去除用户的所有权限，但是他还可以登录，要完全地删除一个用户，你需要在user表中删除相应的记录：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; DELETE FROM user&lt;br /&gt;
            -&amp;gt; WHERE User=&amp;quot;idiot&amp;quot; AND Host=&amp;quot;%.host.net&amp;quot;;&lt;br /&gt;
            &amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;b&gt;访问控制技巧&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;由于MySQL中访问控制系统工作的方法的影响，在建立你的用户之前你必须知道两个特征。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;当 建立的用户只能从MySQL服务运行的计算机上登录到MySQL服务(也就是说，你需要他们telnet到服务器并在那里运行MySQL的客户端程序，或 者是使用象PHP这样的服务器端脚本语言进行通信)，你大概会问自己GRANT命令的&amp;lt;user&amp;gt;部分应该填什么内容。如果服务是运行在 www.host.net。你是应该将用户设置为username@www.host.net还是username@localhost呢？&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;答 案是，你不能依赖其中的任何一种来处理任何连接。从理论上来说，如果用户在连接时(无论是使用mysql客户端还是使用PHP的 mysql_connect函数)指定了主机名，这个主机名必须与访问控制系统中的记录匹配。但是因为你也许不想强迫你的用户指定主机名(事实 上，mysql客户端的用户也许根本不会指定主机名)，你最好使用下面这种工作环境。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;对 于用户需要能够从MySQL服务在其上运行的机器上连接MySQL的情况，在MySQL访问控制系统中建立两个用户记录：一个使用实际的主机名(例 如，username@www.host.net)，另一个使用localhost(例如，username@localhost)，当然，你需要为两个 用户分别grant/revoke所有的权限。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;MySQL管理者所要面对的另一个带 有普通性的问题是一个其中的主机名使用了通配符的用户记录(例如，前面提到jessica@%.host.net)没起作用。发生这种情况，一般是由于 MySQL访问控制系统中记录的优先级的问题。具体地说，越具体的主机名优先级越高(例如，www.host.net是最具体的，%.host.net是 比较具体的，而%是最不具体的)。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;在一个新安装后，MySQL访问控制系统包含两个 匿名用户记录(它允许在当前主机上使用任何用户名进行连接&amp;#8211;这两个记录分别支持从localhost连接以及从服务器的实现的主机名进行连接)，以及两 个root用户目录。我们上面讨论的情况发生时是由于匿名用户目录的优先级比我们的新记录高，因为他们的主机名更具体。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;让我们看看www.host.net上user表的内容，我们假定已经添加了Jessica的记录。数据行是按照MySQL服务在确认连接时的优先级排列的：&lt;/p&gt;
&lt;div align=&quot;center&quot;&gt;&lt;img height=&quot;124&quot; width=&quot;328&quot; vspace=&quot;0&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;/download/picture/mysql-management/1.gif&quot; hsapce=&quot;0&quot; /&gt;&lt;/div&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;正 如你看到的，因为Jessica的记录的主机名最不具体，它的优先级最低。当Jessica试图从www.host.net连接时，MySQL服务将他的 连接匹配为一个匿名用户记录(空白的User值与任何人匹配)。因为这些匿名记录不需要口令，而也许Jessica输入了他的口令，MySQL将拒绝这个 连接。即使Jessica没有输入口令，他可能也只被给予了匿名用户的权限(非常有限)，而不是他原来被赋予的权限。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;解决这个问题的方法是，要么你删除匿名用户的记录(DELETE FROM user WHERE User=&amp;quot;&amp;quot;)，要么再为所有的可能从localhost连接的用户指定两条记录(例如，相对于localhost以及相对于服务器的实际主机名)：&lt;/p&gt;
&lt;div align=&quot;center&quot;&gt;&lt;img height=&quot;151&quot; width=&quot;328&quot; vspace=&quot;0&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;/download/picture/mysql-management/2.gif&quot; hsapce=&quot;0&quot; /&gt;&lt;/div&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;因为要为每个用户维护三个用户记录(以及相应的三套权限)会很麻烦，所以我们推荐你删除匿名用户，除非你需要用他们来完成什么特殊的应用：&lt;/p&gt;
&lt;div align=&quot;center&quot;&gt;&lt;img height=&quot;96&quot; width=&quot;327&quot; vspace=&quot;0&quot; border=&quot;0&quot; alt=&quot;&quot; src=&quot;/download/picture/mysql-management/3.gif&quot; hsapce=&quot;0&quot; /&gt;&lt;/div&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;b&gt;被锁在外面？&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;就 象把钥匙丢失在车上一样，在花费了一个小时安装并调试好一个新的MySQL服务器之后忘记了口令的确是件麻烦事。幸运的是，如果你有访问MySQL运行的 计算机的root权限，或者你能够使用运行MySQL服务的用户登录(如果你按照第一章中的指导，这是指mysqlusr)，那么不会出什么问题。按照下 面的步骤，你可以获得服务的控制权。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;首先，你必须关闭MySQL服务。因为通常使用的mysqladmin需要用到你忘了的口令，你只能通过杀掉服务的进程来完成这项工作。使用ps命令或者看看服务的PID文件(在MySQL数据目录下)，确定MySQL服务的进程的ID，然后使用下面的命令终止它：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% kill &amp;lt;pid&amp;gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;这里&amp;lt;pid&amp;gt;是MySQL服务的进程的ID。这样将可以终止服务。除非绝对必要，不要使用kill -9，因为这样有可能损坏你的表文件。如果你被迫只能这么做，下面将告诉你如何检查和修复那些文件。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;关 闭了服务之后，你可以通过运行带&amp;#8211;skip-grant-tables命令行选项的safe-mysqld (在Windows下使用mysqld或mysqld-nt)命令重启它。这将指示MySQL服务允许自由的访问，明显的，我们应该尽可能地短时间的使用 这种模式运行服务，以避免固有的安全风险。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;连接成功后，改变你的root口令：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;mysql&amp;gt; USE mysql;&lt;br /&gt;
            mysql&amp;gt; UPDATE user SET Password=PASSWORD(&amp;quot;newpassword&amp;quot;)&lt;br /&gt;
            -&amp;gt; WHERE User=&amp;quot;root&amp;quot;;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;最后，断开连接并指示MySQL服务重载授权表以接收新的口令：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% mysqladmin flush-privileges&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;现在一切都好了&amp;#8211;甚至不会有人知道你干了什么。就象你虽然将钥匙丢在了车上，而你自己也在车上一样。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;b&gt;检查和修复MySQL数据文件&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;由 于临时断电，使用kill -9中止MySQL服务进程，或者是Jessica的朋友idiot@%.host.net又犯了一个错误，所有的这些都可能会毁坏MySQL的数据文 件。如果在被干扰时，服务正在改变文件，文件可能会留下错误的或不一致的状态。因为这样的毁坏有时是不容易被发现的，当你发现这个错误时可能是很久以后的 事了。于是，当你发现这个问题时，也许所有的备份都有同样的错误。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;MySQL参考手册的第十五章讲述了MySQL自带的myisamchk的功能，以及如何使用它检查和修复你的MySQL数据文件。虽然这一章对于每个想要搭建一个强壮的MySQL服务的人都是推荐阅读的，我们还是有必要在这里对其中的要点进行讨论。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;在 我们继续之前，你必须意识到myisamchk程序对用来检查和修改的MySQL数据文件的访问应该是唯一的。如果MySQL服务正在使用某一文件，并对 myisamchk正在检查的文件进行修改，myisamchk会误以为发生了错误，并会试图进行修复&amp;#8211;这将导致MySQL服务的崩溃！这样，要避免这 种情况的发生，通常我们需要在工作时关闭MySQL服务。作为选择，你也可以暂时关闭服务以制作一个文件的拷贝，然后在这个拷贝上工作。当你做完了以后， 重新关闭服务并使用新的文件取代原来的文件(也许你还需要使用期间的变更日志)。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;MySQL 数据目录不是太难理解的。每一个数据库对应一个子目录，每个子目录中包含了对应于这个数据库中的数据表的文件。每一个数据表对应三个文件，它们和表名相 同，但是具有不同的扩展名。tblName.frm文件是表的定义，它保存了表中包含的数据列的内容和类型。tblName.MYD文件包含了表中的数 据。tblName.MYI文件包含了表的索引(例如，它可能包含lookup表以帮助提高对表的主键列的查询)。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;要检查一个表的错误，只需要运行myisamchk(在MySQL的bin目录下)并提供文件的位置和表名，或者是表的索引文件名：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% myisamchk /usr/local/mysql/var/dbName/tblName&lt;br /&gt;
            % myisamchk /usr/local/mysql/var/dbName/tblName.MYI&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;上面的两个命令都可以执行对指定表的检查。要检查数据库中所有的表，可以使用通配符：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% myisamchk /usr/local/mysql/var/dbName/*.MYI&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;要检查所有数据库中的所有表，可以使用两个通配符：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% myisamchk /usr/local/mysql/var/*/*.MYI&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;如果不带任何选项，myisamchk将对表文件执行普通的检查。如果你对一个表有怀疑，但是普通的检查不能发现任何错误，你可以执行更彻底的检查(但是也更慢！)，这需要使用&amp;#8211;extend-check选项：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% myisamchk &amp;#8211;extend-check /path/to/tblName&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;对 错误的检查是没有破坏性的，这意味着你不必担心执行对你的数据文件的检查会使已经存在的问题变得更糟。另一方面，修复选项，虽然通常也是安全的，但是它对 你的数据文件的更改是无法撤消的。因为这个原因，我们强烈推荐你试图修复一个被破坏的表文件时首先做个备份，并确保在制作这个备份之前你的MySQL服务 是关闭的。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;当你试图修复一个被破坏的表的问题时，有三种修复类型。如果你得到一个错误信息指出一个临时文件不能建立，删除信息所指出的文件并再试一次&amp;#8211;这通常是上一次修复操作遗留下来的。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;这三种修复方法如下所示：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;
&lt;table width=&quot;540&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;1&quot; align=&quot;center&quot; bordercolorlight=&quot;black&quot; bordercolordark=&quot;#FFFFFF&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td bgcolor=&quot;#e6e6e6&quot;&gt;% myisamchk &amp;#8211;recover &amp;#8211;quick /path/to/tblName&lt;br /&gt;
            % myisamchk &amp;#8211;recover /path/to/tblName&lt;br /&gt;
            % myisamchk &amp;#8211;safe-recover /path/to/tblName&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;第一种是最快的，用来修复最普通的问题；而最后一种是最慢的，用来修复一些其它方法所不能修复的问题。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;b&gt;检查和修复MySQL数据文件&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;如果上面的方法无法修复一个被损坏的表，在你放弃之前，你还可以试试下面这两个技巧：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;如 果你怀疑表的索引文件(*.MYI)发生了不可修复的错误，甚至是丢失了这个文件，你可以使用数据文件(*.MYD)和数据格式文件(*.frm)重新生 成它。首先制作一个数据文件(tblName.MYD)的拷贝。重启你的MySQL服务并连接到这个服务上，使用下面的命令删除表的内容：&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;mysql&amp;gt; DELETE FROM tblName;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;在 删除表的内容的同时，会建立一个新的索引文件。退出登录并重新关闭服务，然后用你刚才保存的数据文件(tblName.MYD)覆盖新的(空)数据文件。 最后，使用myisamchk执行标准的修复(上面的第二种方法)，根据表的数据的内容和表的格式文件重新生成索引数据。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;如 果你的表的格式文件(tblName.frm)丢失了或者是发生了不可修复的错误，但是你清楚如何使用相应的CREATE TABLE语句来重新生成这张表，你可以重新生成一个新的.frm文件并和你的数据文件和索引文件(如果索引文件有问题，使用上面的方法重建一个新的)一 起使用。首先制作一个数据和索引文件的拷贝，然后删除原来的文件(删除数据目录下有关这个表的所有记录)。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;启动MySQL服务并使用当初的CREATE TABLE文件建立一个新的表。新的.frm文件应该可以正常工作了，但是最好你还是执行一下标准的修复(上面的第二种方法)。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;&lt;b&gt;结语&lt;/b&gt;&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;OK，的确这一章没有多少我们通常所习惯的可以具体执行某项实际工作的代码。但是所有的这些工作&amp;#8211;备份和恢复数据库，管理MySQL的访问控制系统，数据表的检查和修复&amp;#8211;都将有助于我们建立一个经得住时间考验的MySQL数据库服务器。&lt;/p&gt;
&lt;p style=&quot;text-indent: 2em;&quot;&gt;在本教程的倒数第二章&amp;mdash;&amp;mdash;第九章中，我们会学习一些更复杂的SQL技术以使得我们的关系型数据库服务器可以完成一些你之前也许从未想到过的工作。&lt;/p&gt;
&lt;h3&gt;随机文章&lt;/h3&gt;
&lt;ul class=&quot;related_post&quot;&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/slough-off-the-cicadas-golden-shell/&quot; title=&quot;第二十一计 金蝉脱壳&quot;&gt;第二十一计 金蝉脱壳&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/11/november-ninth/&quot; title=&quot;November ninth&quot;&gt;November ninth&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/my-site-is-free-from-malware-now/&quot; title=&quot;嗨谷歌，我的网站不再有恶意软件了！&quot;&gt;嗨谷歌，我的网站不再有恶意软件了！&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/shower-with-your-girlfriend/&quot; title=&quot;Shower with your girlfriend&quot;&gt;Shower with your girlfriend&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/10-tips-for-seo-and-external-links/&quot; title=&quot;seo与外链绝密技巧珍藏版分享(1)&quot;&gt;seo与外链绝密技巧珍藏版分享(1)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/winds-of-forgiveness-can-erase-hurt-away/&quot; title=&quot;Winds of Forgiveness Can Erase Hurt Away&quot;&gt;Winds of Forgiveness Can Erase Hurt Away&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/09/run-through-the-rain/&quot; title=&quot;Run Through the Rain 雨中的记忆 &quot;&gt;Run Through the Rain 雨中的记忆 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2007/08/worth-reading/&quot; title=&quot;[转]大学生不可不看&quot;&gt;[转]大学生不可不看&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/08/covering-the-dagger-with-a-smile/&quot; title=&quot;第十计 笑里藏刀 &quot;&gt;第十计 笑里藏刀 &lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://myleave.cn/index.php/2008/10/october-eighth/&quot; title=&quot;October eighth&quot;&gt;October eighth&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a href=&quot;http://17fav.com/?v=3.0.2&amp;hash=305fe5be1537c0b00f968a59afe3cf48&amp;url=http%3A%2F%2Fmyleave.cn%2Findex.php%2F2008%2F11%2Fmysql-management%2F&amp;title=%E7%AC%AC%E5%85%AB%E8%8A%82%EF%BC%9AMySQL%E7%AE%A1%E7%90%86&amp;description=%E5%AF%B9%E4%BA%8E%E5%86%85%E5%AE%B9%E9%A9%B1%E5%8A%A8%E7%9A%84%E7%BD%91%E7%AB%99%EF%BC%8C%E8%AE%BE%E8%AE%A1%E5%A5%BD%E5%9D%8F%E7%9A%84%E5%85%B3%E9%94%AE%E6%98%AF%E5%85%B3%E7%B3%BB%E5%9E%8B%E6%95%B0%E6%8D%AE%E5%BA%93%E3%80%82%E5%9C%A8%E8%BF%99%E4%B8%AA%E6%95%99%E7%A8%8B%E4%B8%AD%EF%BC%8C%E6%88%91%E4%BB%AC%E5%B7%B2%E7%BB%8F%E4%BD%BF%E7%94%A8%E4%BA%86+MySQL%E5%85%B3%E7%B3%BB%E5%9E%8B%E6%95%B0%E6%8D%AE%E5%BA%93%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%28RDBMS%29%E5%BB%BA%E7%AB%8B%E4%BA%86%E6%88%91%E4%BB%AC%E7%9A%84%E6%95%B0%E6%8D%AE%E5%BA%93%E3%80%82%E5%AF%B9%E4%BA%8E%E7%BD%91%E7%AB%99%E7%9A%84%E5%BC%80%E5%8F%91%E8%80%85%E6%9D%A5%E8%AF%B4%EF%BC%8CMySQL%E6%98%AF%E4%B8%80%E4%B8%AA%E8%BE%83%E5%8F%97%E6%AC%A2%E8%BF%8E%E7%9A%84%E9%80%89%E6%8B%A9...&amp;tags=&quot; rel=&quot;2321&quot; class=&quot;btn-17fav&quot; title=&quot;用 17fav 收藏和分享本文&quot;&gt;&lt;img src=&quot;http://myleave.cn/wp-content/plugins/17fav-bookmark-share/bookmark-blue.gif&quot; alt=&quot;17fav 收藏本文&quot; /&gt;&lt;/a&gt;</content:encoded><wfw:commentRss>http://myleave.cn/index.php/2008/11/mysql-management/feed/</wfw:commentRss><description>对于内容驱动的网站，设计好坏的关键是关系型数据库。在这个教程中，我们已经使用了 MySQL关系型数据库管理系统(RDBMS)建立了我们的数据库。对于网站的开发者来说，MySQL是一个较受欢迎的选择...</description><category>LAMP</category><pubDate>Sun, 16 Nov 2008 01:23:36 +0800</pubDate><author>myleave</author><comments>http://myleave.cn/index.php/2008/11/mysql-management/#comments</comments><guid isPermaLink="false">http://myleave.cn/?p=2321</guid><dc:creator>myleave</dc:creator><fs:srclink>http://myleave.cn/index.php/2008/11/mysql-management/</fs:srclink><fs:srcfeed>http://myleave.cn/?feed=rss2</fs:srcfeed><fs:itemid>feedsky/Arthur1989/~7079859/183254549/5188178</fs:itemid></item></channel></rss>
