<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[PHP curl新浪微博发信接口]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Fri, 01 Jan 2010 03:33:26 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	新浪微博已开放很久但是无奈一直不提供api.网上也没搜索到相应的，因此风吟自己写了一个函数。可以发送到新浪微博。跟大家分享，希望官方能及早开放API。诞生更多应用.<br/><br/><br/>以下为引用的内容：<br/><br/><br/><div class="code">&lt;?php<br/>/*<br/>-------------------------------------------------------<br/>@名称:基于CURL的新浪微博接口<br/>@演示:http://demos.fengyin.name/apps/sina-microblog-api.php<br/>@作者:风吟<br/>@博客:http://fengyin.name/<br/>@更新:2009年11月6日 17:15:54<br/>@版权:Copyright (c) 风吟版权所有转载请保留注释，本程序为开源程序(开放源代码)。<br/>只要你遵守 MIT licence 协议.您就可以自由地传播和修改源码以及创作衍生作品.<br/>-------------------------------------------------------<br/>调用方式:<br/>sendmicroblog(&#91;帐号&#93;,&#91;密码&#93;,&#91;内容&#93;);<br/>*/<br/>function sendmicroblog($a, $b, $c) &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;$d = tempnam(&#039;./&#039;, &#039;cookie.txt&#039;); //创建随机临时文件保存cookie.<br/>&nbsp;&nbsp;&nbsp;&nbsp;$ch = curl_init(&quot;&quot;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_COOKIEJAR, $d);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_HEADER, 0);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_TIMEOUT, 10);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_USERAGENT, &quot;FengYin&quot;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_exec($ch);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_close($ch);<br/>&nbsp;&nbsp;&nbsp;&nbsp;unset($ch);<br/>&nbsp;&nbsp;&nbsp;&nbsp;$ch = curl_init($ch);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_URL, &quot;&quot;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_REFERER, &quot;&quot;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_POST, 1);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_POSTFIELDS, &quot;content=&quot;.urlencode($c));<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_setopt($ch, CURLOPT_COOKIEFILE, $d);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_exec($ch);<br/>&nbsp;&nbsp;&nbsp;&nbsp;curl_close($ch);<br/>&nbsp;&nbsp;&nbsp;&nbsp;unlink($d);//删除临时文件.<br/><br/>&#125;<br/>/*<br/>使用方式:<br/>sendmicroblog(我爱新浪 - 通过风吟API发送&#039;);<br/>*/<br/>?&gt;</div><br/>
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] PHP curl新浪微博发信接口]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>