<?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>腦功仔個Blog &#187; PHP</title>
	<atom:link href="http://orz.hk/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://orz.hk</link>
	<description>每天都努力用腦用功的打工仔</description>
	<lastBuildDate>Thu, 10 May 2012 03:14:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Optimization 最新紀錄</title>
		<link>http://orz.hk/2008/12/10/2998/</link>
		<comments>http://orz.hk/2008/12/10/2998/#comments</comments>
		<pubDate>Wed, 10 Dec 2008 03:05:30 +0000</pubDate>
		<dc:creator>腦功仔</dc:creator>
				<category><![CDATA[開發心得]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[optimization]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://orz.hk/?p=2998</guid>
		<description><![CDATA[幫個網站攪 optimization, 主資料庫高鋒期最高負載當作 100%, 而家只係得返 10%, 甚至更少, 而當中 25% 我有信心可以再降低。 當然要破我以往最高紀錄係冇乜可能, 由 15分鐘既運算優化到得返幾秒, 個基數太細所以計出黎太誇張。而且嗰次係資料庫設計嚴重失誤, 所以先造就到咁既紀錄。 今次優化其實借助過往喺 ASP.NET 既經驗, 參考佢地既 architecture 而對一個運作已久既 php website 進行架構性改動， 詳情不便透露太多, 但我想表達既就係精乜野 language / platform 之餘, 了解其他既運作對自己技術進步方面都有莫大得益。]]></description>
			<content:encoded><![CDATA[<p>幫個網站攪 optimization, 主資料庫高鋒期最高負載當作 100%, 而家只係得返 10%, 甚至更少, 而當中 25% 我有信心可以再降低。</p>
<p>當然要破我以往最高紀錄係冇乜可能, 由 15分鐘既運算優化到得返幾秒, 個基數太細所以計出黎太誇張。而且嗰次係資料庫設計嚴重失誤, 所以先造就到咁既紀錄。</p>
<p>今次優化其實借助過往喺 ASP.NET 既經驗, 參考佢地既 architecture 而對一個運作已久既 php website 進行架構性改動， 詳情不便透露太多, 但我想表達既就係精乜野 language / platform 之餘, 了解其他既運作對自己技術進步方面都有莫大得益。</p>
]]></content:encoded>
			<wfw:commentRss>http://orz.hk/2008/12/10/2998/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Windows PHP 用msmtp經 Google 出 email</title>
		<link>http://orz.hk/2008/08/13/2569/</link>
		<comments>http://orz.hk/2008/08/13/2569/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 10:19:42 +0000</pubDate>
		<dc:creator>腦功仔</dc:creator>
				<category><![CDATA[開發心得]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://orz.hk/?p=2569</guid>
		<description><![CDATA[由於台 server 喺 load balancer 後面, 又唔想特登 set 多個 IP 用黎出 email, 再加上用 google 嚟出 email 唔駛驚俾人當 spam, 所以選擇用 google smtp。 用 Google smtp 有幾個問題, 首先佢地行 SSL 同埋核証用戶名稱同密碼, PHP 本身個 mail function 係唔 support, 我又唔想行 relay server, 所以就選擇經 msmtp。 首先要裝個 cygwin, 記得要選 msmtp。 然後就去修改 php.ini, 搵/加行 sendmail_path: sendmail_path = &#8220;C:/cygwin/usr/sbin/msmtp -t -C C:/cygwin/etc/msmtp/msmtprc&#8221; 創建 C:/cygwin/etc/msmtp/msmtprc [...]]]></description>
			<content:encoded><![CDATA[<p>由於台 server 喺 load balancer 後面, 又唔想特登 set 多個 IP 用黎出 email, 再加上用 google 嚟出 email 唔駛驚俾人當 spam, 所以選擇用 google smtp。</p>
<p>用 Google smtp 有幾個問題, 首先佢地行 SSL 同埋核証用戶名稱同密碼, PHP 本身個 mail function 係唔 support, 我又唔想行 relay server, 所以就選擇經 msmtp。 </p>
<p>首先要裝個 <a href="http://www.cygwin.com/" target=_blank>cygwin</a>, 記得要選 msmtp。 </p>
<p>然後就去修改 php.ini, 搵/加行 sendmail_path:<br />
sendmail_path = &#8220;C:/cygwin/usr/sbin/msmtp -t -C C:/cygwin/etc/msmtp/msmtprc&#8221;</p>
<p>創建 C:/cygwin/etc/msmtp/msmtprc</p>
<blockquote><p>
account default</p>
<p>tls_starttls on<br />
tls on<br />
tls_certcheck off<br />
host smtp.gmail.com<br />
port 587<br />
auth on<br />
from 你個電郵地址<br />
user 你個用戶名<br />
password 你個密碼<br />
logfile c:/log_files/msmtp.log
</p></blockquote>
<p>之後就大功告成<br />
如果唔得</p>
<ol>
<li>check 下 php.ini 個 sendmail_path value 有冇 load 到</li>
<li>直接行 C:/cygwin/usr/sbin/msmtp -t -C C:/cygwin/etc/msmtp/msmtprc</li>
<li>行 C:/cygwin/usr/sbin/msmtp -d -t -C C:/cygwin/etc/msmtp/msmtprc, 用<br />To:test@youraccount.com [ENTER]<br />.[ENTER]<br />[ENTER]<br />黎 send email
</li>
<li>PATH 一定要包括 C:\cygwin\bin, 如果唔係會 load 唔到某 d DLL</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://orz.hk/2008/08/13/2569/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>EAN 13 check digits with PHP</title>
		<link>http://orz.hk/2008/07/16/2185/</link>
		<comments>http://orz.hk/2008/07/16/2185/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 03:55:02 +0000</pubDate>
		<dc:creator>腦功仔</dc:creator>
				<category><![CDATA[開發心得]]></category>
		<category><![CDATA[barcode]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://orz.hk/?p=2185</guid>
		<description><![CDATA[頭十二個喺數字, 最尾個係 check digits PHP檢查 function: function ean13_check_digit&#40;$digits&#41; &#123; //first change digits to a string so that we can access individual numbers $digits =&#40;string&#41;$digits; // 1. Add the values of the digits in the even-numbered positions: 2, 4, 6, etc. $even_sum = $digits&#123;1&#125; + $digits&#123;3&#125; + $digits&#123;5&#125; + $digits&#123;7&#125; + $digits&#123;9&#125; + $digits&#123;11&#125;; // 2. [...]]]></description>
			<content:encoded><![CDATA[<p>頭十二個喺數字, 最尾個係 check digits</p>
<p>PHP檢查 function:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">      <span style="color: #000000; font-weight: bold;">function</span> ean13_check_digit<span style="color: #009900;">&#40;</span><span style="color: #000088;">$digits</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #666666; font-style: italic;">//first change digits to a string so that we can access individual numbers</span>
      <span style="color: #000088;">$digits</span> <span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>string<span style="color: #009900;">&#41;</span><span style="color: #000088;">$digits</span><span style="color: #339933;">;</span>
      <span style="color: #666666; font-style: italic;">// 1. Add the values of the digits in the even-numbered positions: 2, 4, 6, etc.</span>
      <span style="color: #000088;">$even_sum</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">9</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">11</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
      <span style="color: #666666; font-style: italic;">// 2. Multiply this result by 3.</span>
      <span style="color: #000088;">$even_sum_three</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$even_sum</span> <span style="color: #339933;">*</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">;</span>
      <span style="color: #666666; font-style: italic;">// 3. Add the values of the digits in the odd-numbered positions: 1, 3, 5, etc.</span>
      <span style="color: #000088;">$odd_sum</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">6</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">8</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$digits</span><span style="color: #009900;">&#123;</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
      <span style="color: #666666; font-style: italic;">// 4. Sum the results of steps 2 and 3.</span>
      <span style="color: #000088;">$total_sum</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$even_sum_three</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$odd_sum</span><span style="color: #339933;">;</span>
      <span style="color: #666666; font-style: italic;">// 5. The check character is the smallest number which, when added to the result in step 4,  produces a multiple of 10.</span>
      <span style="color: #000088;">$next_ten</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">ceil</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$total_sum</span><span style="color: #339933;">/</span><span style="color: #cc66cc;">10</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">10</span><span style="color: #339933;">;</span>
      <span style="color: #000088;">$check_digit</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$next_ten</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$total_sum</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">return</span> <span style="color: #000088;">$digits</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$check_digit</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span></pre></div></div>

<p>抄自 <a href="http://www.edmondscommerce.co.uk/blog/php/ean13-barcode-check-digit-with-php/" target=_blank>http://www.edmondscommerce.co.uk/blog/php/ean13-barcode-check-digit-with-php/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://orz.hk/2008/07/16/2185/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serendipity migrate to WordPress &#8211; Categories</title>
		<link>http://orz.hk/2008/07/06/2152/</link>
		<comments>http://orz.hk/2008/07/06/2152/#comments</comments>
		<pubDate>Sun, 06 Jul 2008 10:04:26 +0000</pubDate>
		<dc:creator>腦功仔</dc:creator>
				<category><![CDATA[開發心得]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Serendipity]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://orz.hk/?p=2152</guid>
		<description><![CDATA[Category 方面我選擇自己寫 script 黎 migrate, 因為發覺 Seredipity 同 WordPress 既 database design mindset 有d 唔同, 而喺 database design 亦常遇到類似既問題, 所以順便拎出黎講講。 Serendipity 喺處埋 categories 方面與 WordPress 截然不同, Serendipity 有專門處理 category 既 tables: entry 同埋 entry_cat; 而 WordPress 就有簡單d, 將 category 歸納入去 wp_terms, wp_term_relationships 同埋 wp_term_taxonomy 入面, 與 tags 及 link categories 等共存。 結果就係 WordPress 只係用 10個 [...]]]></description>
			<content:encoded><![CDATA[<p>Category 方面我選擇自己寫 script 黎 migrate, 因為發覺 Seredipity 同 WordPress 既 database design mindset 有d 唔同, 而喺 database design 亦常遇到類似既問題, 所以順便拎出黎講講。</p>
<p>Serendipity 喺處埋 categories 方面與 WordPress 截然不同, Serendipity 有專門處理 category 既 tables: entry 同埋 entry_cat; 而 WordPress 就有簡單d, 將 category 歸納入去 wp_terms, wp_term_relationships 同埋 wp_term_taxonomy 入面, 與 tags 及 link categories 等共存。 結果就係 WordPress 只係用 10個 tables 就完成任務, 而 Serendipity 裝咗 tags plugin 之後就成 27個 tables, 足足多左差唔多 3倍。</p>
<p>Serendipity 既 database design, 只能滿足處理 category:</p>
<table border="1" cellspacing="0">
<tbody>
<tr>
<td><strong>entries</strong></td>
<td></td>
<td><strong>entry_cat</strong></td>
<td></td>
<td><strong>category</strong></td>
</tr>
<tr>
<td>(k)id</td>
<td>-&lt;</td>
<td>identry</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td>idcategory</td>
<td>&gt;-</td>
<td>(k)id</td>
</tr>
</tbody>
</table>
<p>而 WordPress 既 database design 就將 category, tag, 同埋 link category 歸納入 term:</p>
<table border="1" cellspacing="0">
<tbody>
<tr>
<td><strong>post</strong></td>
<td></td>
<td><strong>term_relationships</strong></td>
<td></td>
<td><strong>term_taxonomy</strong></td>
<td></td>
<td><strong> terms</strong></td>
</tr>
<tr>
<td>(k)post_id</td>
<td>-&lt;</td>
<td>object_id</td>
<td></td>
<td>term_id</td>
<td>&gt;-</td>
<td>(k)term_id</td>
</tr>
<tr>
<td></td>
<td></td>
<td>term_taxonomy_id</td>
<td>&gt;-</td>
<td>(k)term_taxonomy_id</td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td>taxanomy</p>
<p>(即係將個 term 再分類, 可以係 category, tag, link category 或其他)</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>結果就係 WordPress 喺 extensibility 方面優於 Serendipity。以 tag 為例, 假如 WordPress 唔支援而又想新增依個 feature, 佢只係要 taxonomy 方面定多個新名, frontend 作出適當修改, backend 甚至可以用原有系統就完成; 相反喺 Serendipity 要新增 tag 依個功能就要開設專門處理 tag 既 tables, 同埋 backend, 如果加一兩種新 feature 尤是可, 若果加十幾項就麻煩了。</p>
<p>以下係我 migrate 既 PHP script:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SELECT c.categoryid, title FROM serendipity_entries e INNER JOIN serendipity_entrycat c ON c.ent
while ($post = mysql_fetch_assoc($result)) {
// category mapping
        switch ($post['</span>categoryid<span style="color: #0000ff;">']) {
                case 3: $new_cat = 8; break;
                case 2: $new_cat = 11; break;
                case 12: $new_cat = 12; break;
                case 1: $new_cat = 9; break;
                case 16: $new_cat = 13; break;
        }
        $query = &quot;SELECT  id FROM wp_posts WHERE post_title = '</span><span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span>title<span style="color: #009900;">&#93;</span><span style="color: #0000ff;">'&quot;;
        $r2 = mysql_query($query, $wp);
        $row = mysql_fetch_row($r2);
        $wp_post_id = $row[0];
&nbsp;
      mysql_query(&quot;UPDATE wp_term_relationships SET term_taxonomy_id=$new_cat WHERE object_id=$wp_post_id&quot;);
&nbsp;
      mysql_query(&quot;UPDATE wp_term_taxonomy SET count = count - 1 WHERE term_taxonomy_id=1&quot;, $wp);
      mysql_query(&quot;UPDATE wp_term_taxonomy SET count = count + 1 WHERE term_taxonomy_id=$new_cat&quot;, $wp);
}</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://orz.hk/2008/07/06/2152/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>個 blog 由 serendipity migrate 去 wordpress</title>
		<link>http://orz.hk/2008/07/03/2142/</link>
		<comments>http://orz.hk/2008/07/03/2142/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 09:06:48 +0000</pubDate>
		<dc:creator>腦功仔</dc:creator>
				<category><![CDATA[開發心得]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://test.orz.hk/?p=2142</guid>
		<description><![CDATA[外觀分別唔會太大, 但後台(backend/administrator)方面, wordpress 實在方便好多。尤其係個 WYSWYG editor, 用落舒服好多, 唔會有時話你個 document not well format, 乜都冇晒。 轉換期間發現 serendipity s9y 雖然我係行左 utf-8, 之但係儲係 database 入面既 text 竟然係 big5&#8230; 結果係網上搵返黎既 migration plugin 要改寫晒&#8230; mysql_query&#40;'use neo', $mysql&#41;; mysql_query&#40;'set names latin1', $mysql&#41;; $result = mysql_query&#40;'SELECT id, timestamp, authorid, last_modified, title, body, extended, isdraft FROM serendipity_entries', $mysql&#41;; while &#40;$post = mysql_fetch_assoc&#40;$result&#41;&#41; &#123; $post&#91;'categories'&#93; [...]]]></description>
			<content:encoded><![CDATA[<p>外觀分別唔會太大, 但後台(backend/administrator)方面, wordpress 實在方便好多。尤其係個 WYSWYG editor, 用落舒服好多, 唔會有時話你個 document not well format, 乜都冇晒。</p>
<p>轉換期間發現 serendipity s9y 雖然我係行左 utf-8, 之但係儲係 database 入面既 text 竟然係 big5&#8230; 結果係網上搵返黎既 migration plugin 要改寫晒&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'use neo'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$mysql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'set names latin1'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$mysql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SELECT
                               id, timestamp, authorid, last_modified, title,
                               body, extended, isdraft
                               FROM serendipity_entries'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$mysql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$post</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'categories'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$s9ydb</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>get_results<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SELECT categoryid FROM '</span><span style="color: #339933;">.</span><span style="color: #000088;">$pre</span>
      <span style="color: #000088;">$posts</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>我冇用到 wordpress 本身個 API, 因為 document 冇寫明佢會唔會行完個 query 就斷, 再行多個 query 就重新 connect 過, 如果係咁既話, 之前行既 set names 就無效, 所以穩陣d 直接用返 php 入面既 MySQL functions。</p>
<p>基本上 posts 同 comments 都migrate 晒, 遲下先再攪 categories 同埋 tags。</p>
]]></content:encoded>
			<wfw:commentRss>http://orz.hk/2008/07/03/2142/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

