<?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>Leeiio Chaos Made. &#187; 批量短地址</title>
	<atom:link href="http://leeiio.me/tag/%e6%89%b9%e9%87%8f%e7%9f%ad%e5%9c%b0%e5%9d%80/feed/" rel="self" type="application/rss+xml" />
	<link>http://leeiio.me</link>
	<description>The site is redesigning,please be patient  :P</description>
	<lastBuildDate>Sun, 29 Jan 2012 16:40:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Shorter! 基于短地址API的批量缩短服务</title>
		<link>http://leeiio.me/shorter/</link>
		<comments>http://leeiio.me/shorter/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 15:34:10 +0000</pubDate>
		<dc:creator>Leeiio</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Shorter!]]></category>
		<category><![CDATA[批量短地址]]></category>

		<guid isPermaLink="false">http://leeiio.me/?p=1732</guid>
		<description><![CDATA[首先，这不是你们常见的那些提供网址URL缩短的服务，虽然它提供了批量缩短网址URL的服务，但这个服务是基于那些提供短地址服务的API的。通常提供网址URL缩短的短地址服务都只能一条一条来，可能考虑到数据存储之类的问题，但是我这个就不同了，直接拿他们提供的API来做的，所以不用考虑数据存储的问题。 最初，@disinfeqt 童鞋希望我帮他写一个类似 iTweet 或者 twitterKr 的批量转换输入文本框里的网址URL为短地址的服务。后来，被我这个 php 菜鸟水平的人终于成功写出来了。应用在了 Rabr上。如图所示按钮“Shorten”。 上个段落提到过，我的 php 水平实属菜鸟，所以代码写得很羞愧，就请大家多多包含哈。 开源项目在 google code上我的私人项目 Leeiio。 ChangeLog: 2009.12.01 Shorter! v0.1 上线，暂时没发现BUG. 下个版本将增加自定义api功能。 2010.03.25 用encodeURIComponent()函数处理提交给api前的网址，主要是考虑部分短地址程序(比如yourls)不能识别&#038;符号。用“leeiiosplit”替代之前的“&#124;”，其主要原因是因为URL在转换编码的时候会把“&#124;”转换掉。新增支持中文网址以及网址中含有“&#124;”的正则。点击查看与之前版本比对 2010.03.25 改用php的rawurlencode()函数代替js的encodeURIComponent()函数处理，原先的GET换为POST，php在接收POST数据的时候再对url进行rawurlencode()处理。点击查看与之前版本比对 SVN地址：http://leeiio.googlecode.com/svn/trunk/tools/shorter/]]></description>
			<content:encoded><![CDATA[<p><a href="http://lab.leeiio.me/shorter/" rel="nofollow external" title="Shorter!"><img src="http://imgs.leeiio.me/blogimgs/2009/12/20091201_shorter.png" alt="Shorter!" /></a><br />
首先，这不是你们常见的那些提供网址URL缩短的服务，虽然它提供了批量缩短网址URL的服务，但这个服务是基于那些提供短地址服务的API的。通常提供网址URL缩短的短地址服务都只能一条一条来，可能考虑到数据存储之类的问题，但是我这个就不同了，直接拿他们提供的API来做的，所以不用考虑数据存储的问题。<br />
<span id="more-1732"></span><br />
最初，@disinfeqt 童鞋希望我帮他写一个类似 iTweet 或者 twitterKr 的批量转换输入文本框里的网址URL为短地址的服务。后来，被我这个 php 菜鸟水平的人终于成功写出来了。应用在了 <a href="https://zdx.in/" title="Rabr" rel="nofollow" class="broken_link">Rabr</a>上。如图所示按钮“Shorten”。<br />
<img src="http://imgs.leeiio.me/blogimgs/2009/12/20091201_rabr-shorten.gif" alt="Rabr shorten" /><br />
上个段落提到过，我的 php 水平实属菜鸟，所以代码写得很羞愧，就请大家多多包含哈。</p>
<p>开源项目在 google code上我的私人项目 <a rel="nofollow" href="http://code.google.com/p/leeiio/" title="Leeiio @ google code">Leeiio</a>。</p>
<p><strong>ChangeLog:</strong><br />
2009.12.01 Shorter! v0.1 上线，暂时没发现BUG.<br />
下个版本将增加自定义api功能。<br />
2010.03.25 用encodeURIComponent()函数处理提交给api前的网址，主要是考虑部分短地址程序(比如yourls)不能识别&#038;符号。用“leeiiosplit”替代之前的“|”，其主要原因是因为URL在转换编码的时候会把“|”转换掉。新增支持中文网址以及网址中含有“|”的正则。<a rel="nofollow" href="http://code.google.com/p/leeiio/source/detail?r=4" class="broken_link">点击查看与之前版本比对</a><br />
2010.03.25 改用php的rawurlencode()函数代替js的encodeURIComponent()函数处理，原先的GET换为POST，php在接收POST数据的时候再对url进行rawurlencode()处理。<a rel="nofollow" href="http://code.google.com/p/leeiio/source/detail?r=5" class="broken_link">点击查看与之前版本比对</a></p>
<p>SVN地址：<a rel="nofollow" href="http://leeiio.googlecode.com/svn/trunk/tools/shorter/">http://leeiio.googlecode.com/svn/trunk/tools/shorter/</a></p>
<p><p class="preview left"><a href="http://lab.leeiio.me/shorter/" title="点击访问 Shorter!">Shorter!
<em title="Shorter! 基于短地址API的批量缩短服务">Just click it!</em></a></p><br />
<p class="clear"></p></p>
]]></content:encoded>
			<wfw:commentRss>http://leeiio.me/shorter/feed/</wfw:commentRss>
		<slash:comments>42</slash:comments>
		</item>
	</channel>
</rss>

