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

<channel>
	<title>貳夢の弦 &#187; MSM</title>
	<atom:link href="http://blog.frost.tw/tag/msm/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.frost.tw</link>
	<description>夢醒之時，驚覺一切都是虛幻。前行吧！迷途者。</description>
	<lastBuildDate>Wed, 26 Oct 2011 13:28:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://blog.frost.tw/?pushpress=hub'/>
		<item>
		<title>IMified 不同IM不同回應</title>
		<link>http://blog.frost.tw/code/poston-2010-02-23/postid-412</link>
		<comments>http://blog.frost.tw/code/poston-2010-02-23/postid-412#comments</comments>
		<pubDate>Tue, 23 Feb 2010 11:53:14 +0000</pubDate>
		<dc:creator>蒼時弦や</dc:creator>
				<category><![CDATA[程式語言]]></category>
		<category><![CDATA[MSM]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[機器人]]></category>

		<guid isPermaLink="false">http://blog.frost.tw/?p=412</guid>
		<description><![CDATA[今天發網誌晚很多，主要是因為在趕工網界博覽會的專題頁。 (我竟然完完全全的把這個頁面忘記，只好先讓網誌晚點上場了！) 其實是個很簡單的東西，而因為我今天有點晚發，很多事情沒做。 所以今天文章比較短篇，請各位見諒。 在上次使用 Session 時，有發現一個變數 $_REQUEST['network'] 而這個變數的作用為何呢？ 其實就是「分辨使用的即時通訊軟體」 因此，利用傳入的 network 來分辨，就可以依照 IM 來傳回不同訊息。 &#60;?php switch($_REQUEST['network']){ case 'Yahoo': echo "你正使用 Yahoo 與機器人溝通"; break; case 'MSN': echo "你正使用 MSN 與機器人溝通"; break; case 'AIM': echo "你正使用 AIM 與機器人溝通"; break; default: echo &#8230; <a href="http://blog.frost.tw/code/poston-2010-02-23/postid-412">Continue reading <span class="meta-nav">&#8594;</span></a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-21%2Fpostid-406&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-23%2Fpostid-412">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IMified – 免費的 MSN 機器人</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-02-22%2Fpostid-409&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-23%2Fpostid-412">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IMified 機器人使用 Session</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-24%2Fpostid-415&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-23%2Fpostid-412">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IMified – 設置使用者暱稱之一</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-08-12%2Fpostid-636&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-23%2Fpostid-412">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP上一直忽略的小常識</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>今天發網誌晚很多，主要是因為在趕工網界博覽會的專題頁。<br />
(我竟然完完全全的把這個頁面忘記，只好先讓網誌晚點上場了！)<br />
<span id="more-412"></span><br />
其實是個很簡單的東西，而因為我今天有點晚發，很多事情沒做。<br />
所以今天文章比較短篇，請各位見諒。</p>
<p>在上次使用 Session 時，有發現一個變數 $_REQUEST['network']<br />
而這個變數的作用為何呢？<br />
其實就是「分辨使用的即時通訊軟體」</p>
<p>因此，利用傳入的 network 來分辨，就可以依照 IM 來傳回不同訊息。</p>
<pre class="brush: php">&lt;?php

switch($_REQUEST['network']){
  case 'Yahoo':
    echo "你正使用 Yahoo 與機器人溝通";
  break;
  case 'MSN':
    echo "你正使用 MSN 與機器人溝通";
  break;
  case 'AIM':
    echo "你正使用 AIM 與機器人溝通";
  break;
  default:
    echo "你使用 Yahoo/MSN/AIM 以外的即時通訊軟體，或者未知的軟體。";
}

?&gt;
</pre>
<p>整體構造非常簡單，官方的範例是用來針對特推以及簡訊部份。<br />
而特推與簡訊部份不會有 $_REQUEST['msg'] 這個值，也是另外一種判斷方法。</p>
<p>而今天暫時就到這裡，希望大家能夠見諒。<br />
&#8212; 高二的生活愈來愈忙碌，真不知道下次能路影片展示給大家看是何時。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜歡：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-21%2Fpostid-406&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-23%2Fpostid-412">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IMified – 免費的 MSN 機器人</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Flife%2Fposton-2010-02-22%2Fpostid-409&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-23%2Fpostid-412">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IMified 機器人使用 Session</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-24%2Fpostid-415&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-23%2Fpostid-412">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IMified – 設置使用者暱稱之一</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-08-12%2Fpostid-636&from=http%3A%2F%2Fblog.frost.tw%2Fcode%2Fposton-2010-02-23%2Fpostid-412">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">PHP上一直忽略的小常識</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://blog.frost.tw/code/poston-2010-02-23/postid-412/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

