<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:idx="urn:atom-extension:indexing" xmlns:gr="http://www.google.com/schemas/reader/atom/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" idx:index="no"><!--
Content-type: Preventing XSRF in IE.

--><generator uri="http://www.google.com/reader">Google Reader</generator><id>tag:google.com,2005:reader/user/13427888356847374970/label/al080</id><link rel="hub" href="http://pubsubhubbub.appspot.com/" /><title>"al080" via 倫倫3號 in Google Reader</title><gr:continuation>CImh-eS6550C</gr:continuation><author><name>倫倫3號</name></author><updated>2009-11-12T10:52:03Z</updated><link rel="self" href="http://feeds.feedburner.com/al080" type="application/atom+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><entry gr:crawl-timestamp-msec="1258023123279"><id gr:original-id="tag:plurk.com;al080;157366618">tag:google.com,2005:reader/item/f305c2b00b780fc3</id><title type="html">al080 下班時間到囉~大家該休息囉</title><published>2009-11-12T10:00:18Z</published><updated>2009-11-12T10:00:18Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/_zWG71glzrs/2lowuy" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 下班時間到囉~大家該休息囉&lt;img src="http://feeds.feedburner.com/~r/al080/~4/_zWG71glzrs" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2lowuy</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1258001500638"><id gr:original-id="tag:plurk.com;al080;157144036">tag:google.com,2005:reader/item/7db656f6063540db</id><title type="html">al080 廣仲好High唷~GOGOGO</title><published>2009-11-12T03:07:30Z</published><updated>2009-11-12T03:07:30Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/r23GtHZ5ibk/2lk544" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 廣仲好High唷~GOGOGO &lt;a href="http://www.youtube.com/watch?v=coqpyFC3vIg" rel="nofollow"&gt;&lt;img src="http://i4.ytimg.com/vi/coqpyFC3vIg/default.jpg" alt="盧廣仲快閃GOGO舞教學" width="40" height="30"&gt;&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/al080/~4/r23GtHZ5ibk" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2lk544</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1258001500637"><id gr:original-id="tag:plurk.com;al080;157117480">tag:google.com,2005:reader/item/49d21737377219a8</id><title type="html">al080 廣播響起平井堅的KISS OF LIFE~讓我想起了這是日劇主題曲~搜尋一下出現了這影片~這是在統計劇中Kiss的次數嗎~哈哈</title><published>2009-11-12T02:17:36Z</published><updated>2009-11-12T02:17:36Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/OqpCOe677aE/2ljkmg" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 廣播響起平井堅的KISS OF LIFE~讓我想起了這是日劇主題曲~搜尋一下出現了這影片~這是在統計劇中Kiss的次數嗎~哈哈 &lt;a href="http://www.youtube.com/watch?v=kPPYEeixXmY" rel="nofollow"&gt;&lt;img src="http://i4.ytimg.com/vi/kPPYEeixXmY/default.jpg" alt="愛情革命KISS" width="40" height="30"&gt;&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/al080/~4/OqpCOe677aE" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2ljkmg</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257990681686"><id gr:original-id="tag:plurk.com;al080;157078791">tag:google.com,2005:reader/item/09241ca1c45bc625</id><title type="html">al080 剛才廣播在播這首~因為機車廣告大家都知道的歌~話說我第一次看到MV時才知道~原來女主唱是這樣的唷...</title><published>2009-11-12T01:07:43Z</published><updated>2009-11-12T01:07:43Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/juNvOVxa_ug/2liqrr" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 剛才廣播在播這首~因為機車廣告大家都知道的歌~話說我第一次看到MV時才知道~原來女主唱是這樣的唷... &lt;a href="http://www.youtube.com/watch?v=xgtNRYSJEq8" rel="nofollow"&gt;&lt;img src="http://i1.ytimg.com/vi/xgtNRYSJEq8/default.jpg" alt="Day job" width="40" height="30"&gt;&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/al080/~4/juNvOVxa_ug" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2liqrr</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257828556797"><id gr:original-id="tag:plurk.com;al080;155688205">tag:google.com,2005:reader/item/5f01aed7973221d7</id><title type="html">al080 該吃飯囉~大家出發吧</title><published>2009-11-10T04:00:06Z</published><updated>2009-11-10T04:00:06Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/xLhjwGDtEoA/2koxsd" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 該吃飯囉~大家出發吧&lt;img src="http://feeds.feedburner.com/~r/al080/~4/xLhjwGDtEoA" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2koxsd</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257817751077"><id gr:original-id="tag:plurk.com;al080;155583874">tag:google.com,2005:reader/item/e86fb5ed150b923c</id><title type="html">al080 早上聽這個還滿振奮的 [ReP]</title><published>2009-11-10T00:52:05Z</published><updated>2009-11-10T00:52:05Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/Q3D0HH4cvbs/2kmpaa" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 早上聽這個還滿振奮的 &lt;a href="http://www.youtube.com/watch?v=e0RKAqsAMbw" rel="nofollow"&gt;&lt;img src="http://i2.ytimg.com/vi/e0RKAqsAMbw/default.jpg" alt="搖滾燒肉粽(Rock n Rou Zong)  by Marty Young" width="40" height="30"&gt;&lt;/a&gt;  &lt;a href="http://plurk.com/p/2kkrdl"&gt;[ReP]&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/al080/~4/Q3D0HH4cvbs" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2kmpaa</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257817751076"><id gr:original-id="tag:plurk.com;al080;155577950">tag:google.com,2005:reader/item/cb3496bd93ed38da</id><title type="html">al080 雨中騎車的感覺~就是心中一直有OS~前面的別一直煞車~</title><published>2009-11-10T00:40:23Z</published><updated>2009-11-10T00:40:23Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/bGvCn1sZJj0/2kmkpq" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 雨中騎車的感覺~就是心中一直有OS~前面的別一直煞車~&lt;img src="http://feeds.feedburner.com/~r/al080/~4/bGvCn1sZJj0" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2kmkpq</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257774165381"><id gr:original-id="tag:plurk.com;al080;155189674">tag:google.com,2005:reader/item/be0e35c1314eeb6b</id><title type="html">al080 分享 回到家收到了PP13意外收獲-2535算你屌~我明明就有給我的名字~收件人居然寫我的噗浪匿稱:ROCK~倫倫3號...</title><published>2009-11-09T11:20:12Z</published><updated>2009-11-09T11:20:12Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/kGAUBDCN7uI/2ke94a" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 分享 回到家收到了PP13意外收獲-2535算你屌~我明明就有給我的名字~收件人居然寫我的噗浪匿稱:ROCK~倫倫3號...&lt;a href="http://images.plurk.com/188862_2b149e838aab33dcff354bf679f08e34.jpg"&gt;&lt;img src="http://images.plurk.com/tn_188862_2b149e838aab33dcff354bf679f08e34.gif" alt="http://images.plurk.com/188862_2b149e838aab33dcff354bf679f08e34.jpg" height="30"&gt;&lt;/a&gt;&lt;img src="http://feeds.feedburner.com/~r/al080/~4/kGAUBDCN7uI" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2ke94a</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257763361484"><id gr:original-id="tag:plurk.com;al080;155089406">tag:google.com,2005:reader/item/4d71886ec3569ab0</id><title type="html">al080 我剛才真的忙暈頭了~</title><published>2009-11-09T08:48:57Z</published><updated>2009-11-09T08:48:57Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/oWI1J5PYQU0/2kc3r2" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 我剛才真的忙暈頭了~&lt;img src="http://feeds.feedburner.com/~r/al080/~4/oWI1J5PYQU0" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2kc3r2</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257741736813"><id gr:original-id="tag:plurk.com;al080;154940139">tag:google.com,2005:reader/item/b7494134f9967011</id><title type="html">al080 吃飯時間到了~大家要準時吃飯唷</title><published>2009-11-09T04:00:48Z</published><updated>2009-11-09T04:00:48Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/B1zC_bqqOdM/2k8wkr" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 吃飯時間到了~大家要準時吃飯唷&lt;img src="http://feeds.feedburner.com/~r/al080/~4/B1zC_bqqOdM" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2k8wkr</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257508427553"><id gr:original-id="tag:plurk.com;al080;153091008">tag:google.com,2005:reader/item/c3805e02b955caf3</id><title type="html">al080 到家了~晚上~吃火鍋~</title><published>2009-11-06T11:06:52Z</published><updated>2009-11-06T11:06:52Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/snEMR6jh_ro/2j59s0" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 到家了~晚上~吃火鍋~&lt;img src="http://feeds.feedburner.com/~r/al080/~4/snEMR6jh_ro" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2j59s0</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257486806947"><id gr:original-id="tag:plurk.com;al080;152826197">tag:google.com,2005:reader/item/eb06da812483247a</id><title type="html">al080 今天中午吃火鍋耶~好像晚上回家~還是吃火鍋耶~果然要冬至了~</title><published>2009-11-06T03:07:32Z</published><updated>2009-11-06T03:07:32Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/Z4r2ezrqIDk/2izlg5" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 今天中午吃火鍋耶~好像晚上回家~還是吃火鍋耶~果然要冬至了~&lt;img src="http://feeds.feedburner.com/~r/al080/~4/Z4r2ezrqIDk" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2izlg5</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257421956812"><id gr:original-id="tag:plurk.com;al080;152295056">tag:google.com,2005:reader/item/d9bbf41c32bfc317</id><title type="html">al080 準備下班囉~大家辛苦囉~</title><published>2009-11-05T10:00:57Z</published><updated>2009-11-05T10:00:57Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/Et7-JgocHXE/2io7m8" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 準備下班囉~大家辛苦囉~&lt;img src="http://feeds.feedburner.com/~r/al080/~4/Et7-JgocHXE" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2io7m8</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257335503694"><id gr:original-id="tag:plurk.com;al080;151540087">tag:google.com,2005:reader/item/4cc2000f08321133</id><title type="html">al080 準備下班囉~晚上要開會耶</title><published>2009-11-04T10:00:39Z</published><updated>2009-11-04T10:00:39Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/lrvJ-dNWvmU/2i812v" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 準備下班囉~晚上要開會耶&lt;img src="http://feeds.feedburner.com/~r/al080/~4/lrvJ-dNWvmU" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2i812v</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257324692861"><id gr:original-id="tag:plurk.com;al080;151441176">tag:google.com,2005:reader/item/4e18aa62c0b191bc</id><title type="html">al080 我搬座位了耶~換到一個MSN會很不穩的網路環境~搞的我要用web版MSN~</title><published>2009-11-04T07:06:09Z</published><updated>2009-11-04T07:06:09Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/x39HFrTjdzQ/2i5wrc" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 我搬座位了耶~換到一個MSN會很不穩的網路環境~搞的我要用web版MSN~&lt;img src="http://feeds.feedburner.com/~r/al080/~4/x39HFrTjdzQ" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2i5wrc</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257226132926"><id gr:original-id="tag:plurk.com;al080;150620275">tag:google.com,2005:reader/item/31ec017a50f324fe</id><title type="html">al080 該吃飯囉~要準時吃飯才健康</title><published>2009-11-03T04:00:47Z</published><updated>2009-11-03T04:00:47Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/0Mj5PvhotgQ/2hobcj" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 該吃飯囉~要準時吃飯才健康&lt;img src="http://feeds.feedburner.com/~r/al080/~4/0Mj5PvhotgQ" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2hobcj</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257226132925"><id gr:original-id="tag:plurk.com;al080;150530809">tag:google.com,2005:reader/item/24c4e005eb84798e</id><title type="html">al080 還好沒騎小豹出來~氣象真是超不準</title><published>2009-11-03T01:16:36Z</published><updated>2009-11-03T01:16:36Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/xcCmryXdk4M/2hmebd" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 還好沒騎小豹出來~氣象真是超不準&lt;img src="http://feeds.feedburner.com/~r/al080/~4/xcCmryXdk4M" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2hmebd</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257167877719"><id gr:original-id="tag:plurk.com;al080;150133898">tag:google.com,2005:reader/item/4e4f7fe34d8a7d99</id><title type="html">al080 我練習時做的發票對獎網站，有需要的人可試試~最近要找時間再練新的東西~</title><published>2009-11-02T11:24:49Z</published><updated>2009-11-02T11:24:49Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/MPzerta_FzU/2hdw22" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 我練習時做的&lt;a href="http://al080.summerhost.info/invoiceMe/" rel="nofollow"&gt;發票對獎&lt;/a&gt;網站，有需要的人可試試~最近要找時間再練新的東西~&lt;img src="http://feeds.feedburner.com/~r/al080/~4/MPzerta_FzU" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2hdw22</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257133528640"><id gr:original-id="tag:plurk.com;al080;149765937">tag:google.com,2005:reader/item/54b1c800752a71c6</id><title type="html">al080 早安呀~昏睡了兩天~</title><published>2009-11-02T00:51:37Z</published><updated>2009-11-02T00:51:37Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/2guERYnoJBc/2h604x" type="text/html" /><content xml:base="http://www.plurk.com/user/al080.xml" type="html">al080 早安呀~昏睡了兩天~&lt;img src="http://feeds.feedburner.com/~r/al080/~4/2guERYnoJBc" height="1" width="1"/&gt;</content><author><name>al080</name></author><source gr:stream-id="feed/http://www.plurk.com/user/al080.xml"><id>tag:google.com,2005:reader/feed/http://www.plurk.com/user/al080.xml</id><title type="html">al080</title><link rel="alternate" href="http://www.plurk.com/" type="text/html" /></source><feedburner:origLink>http://www.plurk.com/p/2h604x</feedburner:origLink></entry><entry gr:crawl-timestamp-msec="1257049413976"><id gr:original-id="tag:blogger.com,1999:blog-2698062899592178296.post-1369953847645962541">tag:google.com,2005:reader/item/270e292cf4557dd8</id><category term="PHP" scheme="http://www.blogger.com/atom/ns#" /><category term="整理" scheme="http://www.blogger.com/atom/ns#" /><category term="技術札記" scheme="http://www.blogger.com/atom/ns#" /><category term="coding" scheme="http://www.blogger.com/atom/ns#" /><title type="html">[分享]PHP版網頁原始碼處理函式</title><published>2009-11-01T02:44:00Z</published><updated>2009-11-03T08:24:24Z</updated><link rel="alternate" href="http://feedproxy.google.com/~r/al080/~3/oMDkZ1eI6Vk/php_31.html" type="text/html" /><content xml:base="http://allen080.blogspot.com/" type="html">&lt;h4&gt;序言&lt;/h4&gt;
這是我依&lt;a href="http://allen080.blogspot.com/2009/05/vbnet20.html"&gt;VB.Net的網頁原始碼處理函式&lt;/a&gt;翻過來的PHP版程式，可以取得網頁後，再針對特定標簽進行切割處理。
&lt;div&gt;
&lt;h4 style="margin:5px 0px;color:rgb(51, 51, 51)"&gt;函式原始碼&lt;/h4&gt;
&lt;div&gt;我將以下原始碼存在【myClass】目錄的【HTMLParser.php】檔
&lt;/div&gt;

&lt;code&gt;
&lt;p&gt;&amp;lt;?php&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt; &lt;/span&gt;Class HTMLParser{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;function getHTML($url,$method="GET",$param=NULL,$noCashe=False){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;//$param = array(&amp;quot;name&amp;quot; =&amp;gt; &amp;#39;tim&amp;#39;,&amp;quot;content&amp;quot; =&amp;gt; &amp;#39;test&amp;#39;);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;if($noCashe){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$cashe="Cache-Control: no-cache\r\n";&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$cashe="";&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;if($method=="GET" and $param!=NULL){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$data="";&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;foreach ($param as $k =&amp;gt; $v) {&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;if($data!="")&lt;span style="white-space:pre"&gt; &lt;/span&gt;$data.=&amp;quot;&amp;amp;&amp;quot;;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;$data.= "$k=".htmlentities($v);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$url.="?".$data;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;if($method=="POST" and $param!=NULL){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$data = http_build_query($param);  &lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$contentLength="Content-length:".strlen($data)."\r\n";&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$opts = array(&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;&amp;#39;http&amp;#39;=&amp;gt;array(&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;&amp;#39;method&amp;#39;=&amp;gt;$method,&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;&amp;#39;header&amp;#39;=&amp;gt;&amp;quot;User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)\r\n&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;. "Accept-language: zh-tw\r\n"&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;. "Content-Typ: application/x-www-form-urlencoded\r\n"&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;. $cashe . $contentLength,  &lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;&amp;#39;content&amp;#39; =&amp;gt; $data&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;  )&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$opts = array(&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;&amp;#39;http&amp;#39;=&amp;gt;array(&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;&amp;#39;method&amp;#39;=&amp;gt;$method,&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;&amp;#39;header&amp;#39;=&amp;gt;&amp;quot;User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)\r\n&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;. "Accept-language: zh-tw\r\n"&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;. "Content-Typ: application/x-www-form-urlencoded\r\n"&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;. $cashe&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;  )&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;);&lt;/p&gt;
&lt;p&gt;&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;}&lt;span style="white-space:pre"&gt;   &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$context = stream_context_create($opts);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;// Open the file using the HTTP headers set above&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;return file_get_contents($url, false, $context);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;//return file_get_contents($url);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;//取得網頁的Body區段&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;function getHTMLBody($url,$postValue=NULL,$noCashe= False){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$html=NULL;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$htmlBody=NULL;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;if($postValue!=NULL){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$html = $this-&amp;gt;getHTML($url,&amp;quot;POST&amp;quot;,$postValue,$noCashe);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$html = $this-&amp;gt;getHTML($url,&amp;quot;GET&amp;quot;, $postValue,$noCashe);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;If(html!=NULL)&lt;span style="white-space:pre"&gt; &lt;/span&gt;$this-&amp;gt;getHTMLTagContain($html, &amp;quot;body&amp;quot;, $htmlBody);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;return $htmlBody;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;//取得HTML中第一個符合的標籤內容的指標，並將取得的標籤內容寫入參數中&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;function getHTMLTagContain($html,$tag,&amp;amp;$contain=NULL,&amp;amp;$indexEnd= -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$tag = strtolower($tag);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$contain = NULL;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$indexBegin= -1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$indexEnd = -1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$indexbBegin= -1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;If($html !=NULL){&lt;span style="white-space:pre"&gt;    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$indexBegin = strpos(strtolower($html),&amp;quot;&amp;lt;&amp;quot; . $tag);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;if (gettype($indexBegin)!="integer")&lt;span style="white-space:pre"&gt; &lt;/span&gt;$indexBegin=-1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;If($indexBegin &amp;gt; -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;$indexbBegin = strpos($html,&amp;quot;&amp;gt;&amp;quot;,$indexBegin);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;if (gettype($indexbBegin)!="integer"){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$indexbBegin=-1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$indexbBegin+=1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;$findTag=False;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;$indexEnd=$indexbBegin;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;$lastStart=$indexbBegin;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;$stopLimit2 = 9999;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;do{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$indexEnd=strpos(strtolower($html),&amp;quot;&amp;lt;/&amp;quot; . $tag,$indexEnd);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;if(gettype($indexEnd)!="integer")&lt;span style="white-space:pre"&gt; &lt;/span&gt;$indexEnd=-1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;If ($indexEnd &amp;gt; -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;if(gettype(strpos(substr($html,$lastStart, $indexEnd - $lastStart),&amp;quot;&amp;lt;&amp;quot; . $tag))==&amp;quot;integer&amp;quot;){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$lastStart=$indexEnd;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$indexEnd=$indexEnd+strlen(&amp;quot;&amp;lt;/&amp;quot; . $tag);&lt;span style="white-space:pre"&gt;       &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$findTag=True;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$findTag=False;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;$findTag=False;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$stopLimit2--;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;}while($findTag AND $stopLimit2&amp;gt;0);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;If ($indexEnd &amp;gt; -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$contain = substr($html,$indexbBegin, $indexEnd - $indexbBegin);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$indexEnd= strpos($html,&amp;quot;&amp;gt;&amp;quot;,$indexEnd);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;if(gettype($indexEnd)!="integer"){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;$indexEnd=-1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;$indexEnd+=1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;//echo $contain;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;Return $indexbBegin;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;//取得HTML中第一個符合的標籤屬性的指標，並將取得的標籤內容與該屬性內容寫入參數中&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;function getHTMLTagAtt($html,$tag,$attName,&amp;amp;$att=NULL,&amp;amp;$contain=NULL,&amp;amp;$indexEnd= -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$tag = strtolower($tag);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$attName = strtolower($attName);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$contain = NULL;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$att = NULL;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$indexEnd = -1;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$indexBegin= -1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$indexaBegin= -1;&lt;span style="white-space:pre"&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;$indexbEnd = -1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;If($html !=NULL){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$indexBegin = 0;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;$stopLimit1 = 9999;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;do{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;$indexbEnd = -1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;$indexBegin = strpos(strtolower($html),&amp;quot;&amp;lt;&amp;quot; . $tag,$indexBegin);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;if (gettype($indexBegin)!="integer")&lt;span style="white-space:pre"&gt; &lt;/span&gt;$indexBegin=-1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;If($indexBegin &amp;gt; -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$indexbEnd= strpos($html,&amp;quot;&amp;gt;&amp;quot;,$indexBegin);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;if (gettype($indexbEnd)!="integer")&lt;span style="white-space:pre"&gt; &lt;/span&gt;$indexbEnd=-1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;If($indexbEnd &amp;gt; -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;$indexaBegin = strpos(strtolower(str_replace("\"", "'",substr($html,0, $indexbEnd))),$attName . "='",$indexBegin);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;if(gettype($indexaBegin)!="integer")&lt;span style="white-space:pre"&gt; &lt;/span&gt;$indexaBegin=-1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;If($indexaBegin &amp;gt; -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$sign = substr($html,$indexaBegin + strlen($attName . "="), 1);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$indexaBegin+=strlen($attName . "='");&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$indexaEnd= strpos(substr($html,0, $indexbEnd),$sign,$indexaBegin);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;if(gettype($indexaEnd)!="integer") $indexaEnd=-1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;If($indexaEnd &amp;gt; -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;         &lt;/span&gt;$att = substr($html,$indexaBegin, $indexaEnd - $indexaBegin);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$indexBegin = $indexbEnd + 1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;continue;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;$indexbEnd+=1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$findTag=False;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$indexEnd=$indexbEnd;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$lastStart=$indexbEnd;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;$stopLimit2 = 9999;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;do{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;$indexEnd=strpos(strtolower($html),&amp;quot;&amp;lt;/&amp;quot; . $tag,$indexEnd);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;if(gettype($indexEnd)!="integer")&lt;span style="white-space:pre"&gt; &lt;/span&gt;$indexEnd=-1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;If ($indexEnd &amp;gt; -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;if(gettype(strpos(substr($html,$lastStart, $indexEnd - $lastStart),&amp;quot;&amp;lt;&amp;quot; . $tag))==&amp;quot;integer&amp;quot;){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;         &lt;/span&gt;$lastStart=$indexEnd;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;         &lt;/span&gt;$indexEnd=$indexEnd+strlen(&amp;quot;&amp;lt;/&amp;quot; . $tag);&lt;span style="white-space:pre"&gt;       &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;         &lt;/span&gt;$findTag=True;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;         &lt;/span&gt;$findTag=False;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$findTag=False;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;$stopLimit2--;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;}while($findTag==True AND $stopLimit2&amp;gt;0);&lt;span style="white-space:pre"&gt;    &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;If ($indexEnd &amp;gt; -1){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;$contain = substr($html,$indexbEnd, $indexEnd - $indexbEnd);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;$indexEnd= strpos($html,&amp;quot;&amp;gt;&amp;quot;,$indexEnd);&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;if(gettype($indexEnd)!="integer"){&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$indexEnd=-1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;        &lt;/span&gt;$indexEnd+=1;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;       &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;}else{&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;      &lt;/span&gt;break;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;     &lt;/span&gt;$stopLimit1--;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;    &lt;/span&gt;}while($att == NULL AND $stopLimit1&amp;gt;0);&lt;span style="white-space:pre"&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;   &lt;/span&gt;Return $indexbEnd;&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt;  &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;&lt;span style="white-space:pre"&gt; &lt;/span&gt;}&lt;/p&gt;
&lt;p&gt;?&amp;gt;&lt;/p&gt;
&lt;br&gt;
 &lt;/code&gt;
&lt;p&gt;&lt;/p&gt;
&lt;br&gt;
&lt;h4&gt;使用範例&lt;/h4&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;?php&lt;br&gt;
    include &amp;#39;myClass/HTMLParser.php&amp;#39;;&lt;br&gt;
    $htmlParser=new HTMLParser();&lt;br&gt;
    $url = &amp;quot;http://allen080.blogspot.com/2009/05/vbnet20.html&amp;quot;;&lt;br&gt;
    //取得整個網頁的HTML&lt;br&gt;
    $htmlAll = $htmlParser-&amp;gt;getHTML($url);&lt;br&gt;
    //取得網頁Body的部份&lt;br&gt;
    $htmlBody = $htmlParser-&amp;gt;getHTMLBody($url);&lt;br&gt;
    If ($htmlBody!=NULL){&lt;br&gt;
        $indexEnd = strpos($htmlBody,&amp;quot;&amp;lt;span class=&amp;#39;item-control blog-admin&amp;#39;&amp;gt;&amp;quot;);&lt;br&gt;
        if(gettype($indexEnd)!=&amp;quot;integer&amp;quot;)    $indexEnd=-1;&lt;br&gt;
        $valueAttribute = NULL;&lt;br&gt;
        $valueContain = NULL;&lt;br&gt;
        If($indexEnd &amp;gt; 0){&lt;br&gt;
            $htmlBody = substr($htmlBody,$indexEnd);&lt;br&gt;
            //取得a標籤1的內容&lt;br&gt;
            $htmlParser-&amp;gt;getHTMLTagContain($htmlBody, &amp;quot;span&amp;quot;, $valueContain, $indexEnd);&lt;br&gt;
            echo &amp;quot;span標籤的內容: &amp;quot; . $valueContain .&amp;quot;&amp;lt;BR&amp;gt;\n&amp;quot;;&lt;br&gt;
            //$htmlBody = substr($htmlBody,$indexEnd);&lt;br&gt;
            //取得a標籤2的內容與href的屬性&lt;br&gt;
            $htmlParser-&amp;gt;getHTMLTagAtt($htmlBody, &amp;quot;a&amp;quot;, &amp;quot;onclick&amp;quot;, $valueAttribute, $valueContain, $indexEnd);&lt;br&gt;
          echo &amp;quot;a標籤的內容與onclick的屬性: &amp;quot; . $valueAttribute .&amp;quot;\t&amp;quot; . &amp;quot;,內容:&amp;quot; . $valueContain;&lt;br&gt;
        }&lt;br&gt;
    }    &lt;br&gt;
?&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;br&gt;




&lt;h4&gt;執行結果&lt;/h4&gt;
&lt;p&gt;&lt;code&gt;span標籤的內容: &lt;br&gt;
&amp;lt;a class=&amp;#39;quickedit&amp;#39; href=&amp;#39;http://www.blogger.com/rearrange?blogID=2698062899592178296&amp;amp;widgetType=HTML&amp;amp;widgetId=HTML1&amp;amp;action=editWidget&amp;#39; onclick=&amp;#39;return _WidgetManager._PopupConfig(document.getElementById(&amp;quot;HTML1&amp;quot;));&amp;#39; target=&amp;#39;configHTML1&amp;#39; title=&amp;#39;編輯&amp;#39;&amp;gt;&lt;br&gt;
&amp;lt;img alt=&amp;#39;&amp;#39; height=&amp;#39;18&amp;#39; src=&amp;#39;http://img1.blogblog.com/img/icon18_wrench_allbkg.png&amp;#39; width=&amp;#39;18&amp;#39;/&amp;gt;&lt;br&gt;
&amp;lt;/a&amp;gt;&lt;br&gt;
&amp;lt;BR&amp;gt;&lt;br&gt;
a標籤的內容與onclick的屬性: return _WidgetManager._PopupConfig(document.getElementById(&amp;quot;HTML1&amp;quot;));    ,內容:&lt;br&gt;
&amp;lt;img alt=&amp;#39;&amp;#39; height=&amp;#39;18&amp;#39; src=&amp;#39;http://img1.blogblog.com/img/icon18_wrench_allbkg.png&amp;#39; width=&amp;#39;18&amp;#39;/&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;


&lt;br&gt;
&lt;/div&gt;
&lt;h4&gt;總結&lt;/h4&gt;
&lt;div&gt;這是我為了練習php時寫出的東西~&lt;/div&gt;
&lt;div&gt;我個人是覺得滿好用的~&lt;/div&gt;
&lt;div&gt;不過有部份邏輯滿複雜的~所以我也不敢保證完全正確或是適用於各種網頁~&lt;/div&gt;
&lt;div&gt;如果有人用有發現更好的改進方式請跟我說。&lt;/div&gt;
&lt;h4&gt;&lt;font color="#000000" size="3"&gt;&lt;span style="font-size:13px;font-weight:normal;line-height:16px"&gt;&lt;font color="#333333" size="4"&gt;&lt;span style="font-size:15px;line-height:normal"&gt;&lt;b&gt;&lt;br&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/h4&gt;&lt;div&gt;&lt;img width="1" height="1" src="https://blogger.googleusercontent.com/tracker/2698062899592178296-1369953847645962541?l=allen080.blogspot.com"&gt;&lt;/div&gt;&lt;div&gt;
&lt;a href="http://feeds.feedburner.com/~ff/al080betalog?a=CtC-1OSf3CE:FcGf2-t9zi0:LTOaGgOBE9Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/al080betalog?d=LTOaGgOBE9Y" border="0"&gt;&lt;/a&gt; &lt;a href="http://feeds.feedburner.com/~ff/al080betalog?a=CtC-1OSf3CE:FcGf2-t9zi0:63t7Ie-LG7Y"&gt;&lt;img src="http://feeds.feedburner.com/~ff/al080betalog?d=63t7Ie-LG7Y" border="0"&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.feedburner.com/~r/al080betalog/~4/CtC-1OSf3CE" height="1" width="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/al080/~4/oMDkZ1eI6Vk" height="1" width="1"/&gt;</content><author><name>倫倫3號</name></author><source gr:stream-id="feed/http://feeds.feedburner.com/al080betalog"><id>tag:google.com,2005:reader/feed/http://feeds.feedburner.com/al080betalog</id><title type="html">倫倫3號Beta-Log</title><link rel="alternate" href="http://allen080.blogspot.com/" type="text/html" /></source><feedburner:origLink>http://feedproxy.google.com/~r/al080betalog/~3/CtC-1OSf3CE/php_31.html</feedburner:origLink></entry></feed>
