<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The7in &#187; PHP</title>
	<atom:link href="http://the7.in/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://the7.in</link>
	<description>建筑师？我，在路上……</description>
	<lastBuildDate>Wed, 01 Sep 2010 04:24:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>带有自己域名的短网址服务</title>
		<link>http://the7.in/built-up-tinyurl-server-with-shorty/</link>
		<comments>http://the7.in/built-up-tinyurl-server-with-shorty/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 03:06:58 +0000</pubDate>
		<dc:creator>王士奇</dc:creator>
				<category><![CDATA[博客杂谈]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://the7.in/built-up-tinyurl-server-with-shorty/</guid>
		<description><![CDATA[&#160;&#160;&#160;&#160;&#160;&#160; 如果你有一个较短的域名，如果你不想使用那些前篇一律的网址缩短服务，还等什么，赶紧自己建立一个吧。

 

 

<span class="readmore"><a href="http://the7.in/built-up-tinyurl-server-with-shorty/" title="带有自己域名的短网址服务">阅读全文——共846字</a></span>]]></description>
			<content:encoded><![CDATA[<p>&#160;&#160;&#160;&#160;&#160;&#160; 如果你有一个较短的域名，如果你不想使用那些前篇一律的网址缩短服务，还等什么，赶紧<font color="#ff0000">自己建立</font>一个吧。</p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="built-up-tinyurl-server-with-shorty-01" border="0" alt="built-up-tinyurl-server-with-shorty-01" src="http://the7.in/wp-content/uploads/2010/01/builtuptinyurlserverwithshorty01.jpg" width="468" height="348" /> </p>
<p> <span id="more-1243"></span><br />
<h2>
<p>基本要求</p>
</h2>
<blockquote><p>1. 有一个短短的域名。大家都看到著名网络玩家周曙光常常使用的一个短网址了吗，那就是用他的<a href="http://zuo.la">http://zuo.la</a> 做的。我现在这个<a href="http://the7.in">http://the7.in</a> 或者是像清溪长河的<a href="http://10kn.com">http://10kn.com</a> 长度都可以用来搭建。当然，如果你有更小的那就不用说了。</p>
<p>2. 拥有自己的空间。不管你是租的买的，主要是自己能用的，就行。由于我使用的是PHP+MySQL的空间，所以这篇文章的例子都是真的此类空间而言，至于其他，暂时没有试过。</p>
</blockquote>
<h2>
<p>开始操作</p>
</h2>
<blockquote><p>由于我不是专业人士，所以对于此类问题，必先在Google 中搜索。俗话说的好，信谷哥，得结果。</p>
<p>通过搜索，我看到了<a href="http://zou.lu/get-your-own-short-url/" target="_blank">ZOU.LU</a> 博客一篇名为《创建自己域名的短网址服务》的文章，时间是2009年5月。里面介绍了各类实现自建短网址服务的工具，大家可以前去围观。</p>
<p>选择了一个看似最简单的<a href="http://get-shorty.com/">Shorty</a> ，打开后由于是英文，所以继续在Google 中有针对性的搜索使用Shorty 来搭建的教程。在<a href="http://genmicha.cn/built-up-tinyurl-server-with-shorty.htm" target="_blank">趣站酷软</a>中找到了一篇名为《五分钟无痛搭建属于您自己的短地址工具[Shorty]》的文章，照着上面的流程开始操作。</p>
</blockquote>
<h2>
<p>解决问题</p>
</h2>
<blockquote><p>如果你不是专业从事计算机，可能会在上述的安装中遇到些许小麻烦，不过别担心，有我在前面给你们开路。</p>
<blockquote><p>1. 不懂文章说的“编辑数据库信息”是什么？没有关系，其实只要在下图中<font color="#ff0000">红色</font>的地方，填写你的这个域名的使用名，密码和数据库的名称就好了。注意哦，这里缩短网址的数据库是与你博客的数据库共用的。</p>
<p><img style="border-right-width: 0px; display: block; float: none; border-top-width: 0px; border-bottom-width: 0px; margin-left: auto; border-left-width: 0px; margin-right: auto" title="built-up-tinyurl-server-with-shorty-02" border="0" alt="built-up-tinyurl-server-with-shorty-02" src="http://the7.in/wp-content/uploads/2010/01/builtuptinyurlserverwithshorty02.jpg" width="450" height="352" /> </p>
</blockquote>
<blockquote><p>2. 为什么我照着安装，结果提示缺少<font color="#ff0000">.htaccess</font> 文件，而我却实在找不到.htaccess 文件在什么地方。对此，我也有过一番苦恼，是<a href="http://steachs.com/archives/812" target="_blank">就是教不落</a>的《如何显示那该死隐藏的.htassessd档》让我找到了问题所在。</p>
</blockquote>
</blockquote>
<h2>
<p>安装完成</p>
</h2>
<blockquote><p>是不是完成了安装？此法缩短的域名是有三种方式的。</p>
<blockquote><p>第一，安装关键词缩短；</p>
<p>第二，自定义缩短；</p>
<p>第三，随机数字缩短。</p>
</blockquote>
<p>等不及了吧，赶紧试试。如果有什么疑问，给我<font color="#ff0000">留言</font>吧。</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://the7.in/built-up-tinyurl-server-with-shorty/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
