<?php xml version="1.0" encoding="UTF-8"?> 
<feed xmlns="http://www.w3.org/2005/Atom">
<title type="html"><![CDATA[墮落程式]]></title>
<subtitle type="html"><![CDATA[騎著滑鼠、帶著鍵盤去甩尾～～]]></subtitle>
<id>http://blog.phptw.idv.tw/</id> 
<link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw" /> 
<link rel="self" type="application/atom+xml" href="http://blog.phptw.idv.tw/atom.php" /> 
<generator uri="http://www.f2blog.com/" version=".cont 1.1 Build 090728">F2Blog</generator> 
<updated>2009-08-17T17:41:09+08:00</updated> 
<entry>
  <title type="html"><![CDATA[google 下個世代的 搜索引擎]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-212.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-17.html" label="網際網路" /> 
  <updated>2009-08-17T17:41:09+08:00</updated>
  <published>2009-08-17T17:41:09+08:00</published>
  <content type='html'><![CDATA[如題，網址如下：<br />http://www2.sandbox.google.com<br /><br />目前測試出來跟原來的 查詢出來結果有一點不太一樣<br />似乎更精準了一些<br type="_moz" />]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-212.html" /> 
  <id>http://blog.phptw.idv.tw/read-212.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[F2Cont 1.1 Build 090726 正式版]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-211.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2009-07-26T19:31:44+08:00</updated>
  <published>2009-07-26T19:31:44+08:00</published>
  <content type='html'><![CDATA[<div>&nbsp;<p>F2Cont&nbsp;<span href="tag.php?name=Ver" onclick="tagshow(event)">Ver</span>&nbsp;1.1&nbsp;<span href="tag.php?name=Beta" onclick="tagshow(event)">Build 090726 正式</span> 版 發布了</p><p>針對 F2Cont 做了修正如下：</p><ol><li>強化 spam</li><li>檔案轉成utf8</li><li>後台 login 畫面 CSS 修正</li><li>修正  F2Cont&nbsp;<span href="tag.php?name=Ver" onclick="tagshow(event)">Ver</span>&nbsp;1.1&nbsp;<span href="tag.php?name=Beta" onclick="tagshow(event)">Beta</span>&nbsp;090711 版 版 SPAM 評論錯誤</li><li>修正 F2Cont Ver 1.1 Beta 090708 跑馬燈問題ff 不支援問題</li><li><a href="http://www.f2blog.com" target="_blank" title="http://www.f2blog.com" class="KeyWordStyle">F2blog<img src="http://blog.phptw.idv.twimages/f2.gif" border="0" alt=""/></a> 引用傳送的修正<br />             <a href="http://bbs.f2cont.com/thread-141-1-1.html" target="_blank">http://bbs.f2cont.com/thread-141-1-1.html</a></li><li>F2Blog Hack之SEO篇-分類和標籤頁標題<br />             <a href="http://bbs.f2cont.com/thread-201-1-1.html" target="_blank">http://bbs.f2cont.com/thread-201-1-1.html</a></li><li>http://blog.phptw.idv.tw/read-100.html</li><li>F2Blog 外掛 跑馬燈消息<br />             原來的跑馬燈外掛不是挺好用的，還需要自行去編輯跑馬燈內容，所以做了一點點小小的修正。<br />             讓在新增網誌和管理網誌時可以設定跑馬</li></ol></div>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-211.html" /> 
  <id>http://blog.phptw.idv.tw/read-211.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[轉載] URL優化]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-210.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-25.html" label="SEO" /> 
  <updated>2009-07-16T09:16:23+08:00</updated>
  <published>2009-07-16T09:16:23+08:00</published>
  <content type='html'><![CDATA[&nbsp;<br /><span class="Apple-style-span" style="font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16px; color: rgb(102, 102, 102); ">文章來源︰<a href="http://www.seochat.org" target="_blank">http://www.seochat.org</a><br />文章作者︰吳澤欣<br /><br />URL優化也是搜索引擎優化中一個重要的內容。URL優化包括很多個方面，其中最主要的是網站域名、內部目錄以及檔案名。URL優化的兩大宗旨︰1、URL要盡量的簡單、易記；2、包含所優化的關鍵字。但是，這本身就是一對矛盾，如何正確處理這兩者的矛盾對提升網站的排名起到非常重要的作用。<br /><br />1、域名的申請<br /><br />域名註冊是影響網站排名其中一個最重要的原素。也是搜索引擎優化的關鍵。<br /><br />（1）不能使用二級域名或者免費轉向域名:<br /><br />a.如果你所使用二級域名的主域名受到懲罰，那麼，你的網站也會受到牽連；<br /><br />b.很多搜索引擎會規定每個域名的收錄數（如︰www.seochat.org、english.seochat.org與bbs.seochat.org），如何www.seoch t.org這一域名的收錄數上限是30，而你的網站是第31個。那麼，你的網站給搜索引擎收錄的機會就會少至又少了；<br /><br />c.如果是同一個二級域名(一般每個域名都會有不同的主題),那麼搜索引擎就會認為該域名下的沒有一個明確的主題,這樣在排名的時候自然會比同類網站要低,儘管人家的優化程度還</span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-210.html" /> 
  <id>http://blog.phptw.idv.tw/read-210.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[限量短T + 海灘褲 + 夾腳拖]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-209.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-40.html" label="樂在生活" /> 
  <updated>2009-07-13T13:10:12+08:00</updated>
  <published>2009-07-13T13:10:12+08:00</published>
  <content type='html'><![CDATA[&nbsp;<br /><span class="Apple-style-span" style="font-family: Arial; font-size: 12px; line-height: normal; color: rgb(108, 108, 108); white-space: pre; ">今天在plurk 上聊到 上班的穿著，想了一下心中的期望<br />「限量短T + 海灘褲 + 夾腳拖 」理想中的工程師制服，<br />不過似乎不太可能吧....<br />殘念.....<br type="_moz" /></span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-209.html" /> 
  <id>http://blog.phptw.idv.tw/read-209.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[F2Cont Ver 1.1 Beta 090711]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-208.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2009-07-11T22:21:06+08:00</updated>
  <published>2009-07-11T22:21:06+08:00</published>
  <content type='html'><![CDATA[<div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 11pt; line-height: 140%; "><font class="Apple-style-span" color="#848383" face="Verdana, Helvetica, Arial, sans-serif" size="3"><span class="Apple-style-span" style="border-collapse: collapse; font-size: 12px; line-height: 19px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Arial; font-size: medium; line-height: normal; "><div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 11pt; line-height: 140%; "><div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 11pt; line-height: 21px; "><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; border-collapse: collapse; color: rgb(132, 131, 131); ">F2Cont&nbsp;<span href="tag.php?name=Ver" onclick="tagshow(event)" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap; ">Ver</span>&nbsp;1.1&nbsp;<span href="tag.php?name=Beta" onclick="tagshow(event)" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap; ">Beta</span>&nbsp;090711 版 發布了<br style="word-wrap: break-word; line-height: normal; " />目前只是測試版。只提供 path&nbsp;<br style="word-wrap: break-word; line-height: normal; " />path 只適用 F2Cont Ver 1.1 Beta 090708&nbsp;<br style="word-wrap: break-word; line-height: normal; " />也就是 必須先升級至 F2Cont Ver 1.1 Beta 090708 才能套用 path<br style="word-wrap: break-word; line-height: normal; " />如果 無太大 BUG 問題 將會是放出 1.1 版 和 path 檔案<br style="word-wrap: break-word; line-height: normal; " /><br style="word-wrap: break-word; line-height: normal; " /><br style="word-wrap: break-word; line-height: normal; " />針對 F2Cont 做了修正如下<br style="word-wrap: break-word; line-height: normal; " /><br style="word-wrap: break-word; line-height: normal; " />1. 修正 F2Cont Ver 1.1 Beta 090708 跑馬燈問題ff 不支援問題<br style="word-wrap: break-word; line-height: normal; " /><br style="word-wrap: break-word; line-height: normal; " />安裝方式&nbsp;<br style="word-wrap: break-word; line-height: normal; " />下載後 解壓縮 並直接覆蓋掉他 然後 執行 update.php<br style="word-wrap: break-word; line-height: normal; " />例如&nbsp;&nbsp;<a href="http://blog.f2cont.com/update.php" target="_blank" style="word-wrap: break-word; text-decoration: none; color: rgb(64, 80, 96); line-height: normal; ">http://blog.f2<span href="tag.php?name=cont" onclick="tagshow(event)" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap; ">cont</span>.com/update.php</a><br style="word-wrap: break-word; line-height: normal; " />執行完後請將 update.php 刪除<br style="word-wrap: break-word; line-height: normal; " /><br style="word-wrap: break-word; line-height: normal; " />更新前請記得 備份相關檔案 和 資料庫<br style="word-wrap: break-word; line-height: normal; " /><br style="word-wrap: break-word; line-height: normal; " />下載<br style="word-wrap: break-word; line-height: normal; " /><a href="http://f2cont.googlecode.com/files/path.20090711.tar.gz" target="_blank" style="word-wrap: break-word; text-decoration: none; color: rgb(64, 80, 96); line-height: normal; ">http://f2cont.googlecode.com/files/path.20090711.tar.gz</a></span></div></div></span></span></font></div>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-208.html" /> 
  <id>http://blog.phptw.idv.tw/read-208.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[F2Cont Ver 1.1 Beta 090708]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-207.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2009-07-08T22:10:50+08:00</updated>
  <published>2009-07-08T22:10:50+08:00</published>
  <content type='html'><![CDATA[<ol><li>修正 <a href="http://ricky.f2blog.com/" target="_blank">http://ricky.f2blog.com/</a> --&gt; <a href="http://www.sfun.idv.tw" target="_blank">http://www.sfun.idv.tw</a></li><li><a href="http://www.f2blog.com" target="_blank" title="http://www.f2blog.com" class="KeyWordStyle">F2blog<img src="http://blog.phptw.idv.twimages/f2.gif" border="0" alt=""/></a> 引用傳送的修正<br />         <a href="http://bbs.f2cont.com/thread-141-1-1.html" target="_blank">http://bbs.f2cont.com/thread-141-1-1.html</a></li><li>F2Blog Hack之SEO篇-分類和標籤頁標題<br />         <a href="http://bbs.f2cont.com/thread-201-1-1.html" target="_blank">http://bbs.f2cont.com/thread-201-1-1.html</a></li><li>http://blog.phptw.idv.tw/read-100.html</li><li>F2Blog 外掛 跑馬燈消息<br />         原來的跑馬燈外掛不是挺好用的，還需要自行去編輯跑馬燈內容，所以做了一點點小小的修正。<br />         讓在新增網誌和管理網誌時可以設定跑馬燈外掛<br />         原來的功能一樣繼續留著，當沒有設定跑馬燈時，將會使用自訂編輯跑馬燈的內容<br />         需要下載外掛回來安裝，另外有修訂了一些F2Blog的內容，可以下載path 回來 安裝<br />         安裝path 之前請先備份你的檔案和資料庫，避免意外發生。</li><li>強制執行 update.php</li><li>add header location </li></ol>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-207.html" /> 
  <id>http://blog.phptw.idv.tw/read-207.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[09/06/30 G型主機異常]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-205.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-17.html" label="網際網路" /> 
  <updated>2009-06-30T11:43:51+08:00</updated>
  <published>2009-06-30T11:43:51+08:00</published>
  <content type='html'><![CDATA[<br /><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 19px; border-collapse: collapse; color: rgb(132, 131, 131); white-space: pre-wrap; ">09/06/30 台灣時間 上午 11：00～11：50 左右 F2Cont 託管 位址 G型主機異常  ， ping 有 瞬段 現象 或 網路斷線, 所有台灣主機和虛擬主機都受到影響  打電話過去是說 機房 異常查修中， 這段時間上不去是有一點正常的<br /></span><br /><br /><br type="_moz" />]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-205.html" /> 
  <id>http://blog.phptw.idv.tw/read-205.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[F2Cont 1.0 Beta 090628 8盎司非力牛 版]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-204.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2009-06-28T17:39:24+08:00</updated>
  <published>2009-06-28T17:39:24+08:00</published>
  <content type='html'><![CDATA[&nbsp;<br /><div>F2Cont&nbsp;1.0&nbsp;Beta&nbsp;090628&nbsp; &nbsp;8盎司非力牛 版 發布了<br />目前只是測試版。<br /><br />真對 F2Cont 做了修正如下<br /><br /><!--more--><br /><br />1. 修正 F2Cont 1.0 Beta 090624 6盎司非力牛 版 BUG<br />2. 加入F2cont 版權宣告<br />3. 修正 DB class debug<br />4. 修改rss及atom通過驗證&nbsp;<a target="_blank" href="http://bbs.f2cont.com/viewthread.php?tid=61&amp;highlight=">http://bbs.f2cont.com/viewthread.php?tid=61&amp;highlight=</a><br />5. 修正 F2Cont 1.0 Beta 090624 評論錯誤<br />6. 使用投票型評論CommentPro插件&nbsp;<a target="_blank" href="http://bbs.f2cont.com/thread-114-1-1.html">http://bbs.f2cont.com/thread-114-1-1.html</a>&nbsp;出現的錯誤 Warning: fopen(<a target="_blank" nicetitle="http://www.f2blog.com" href="http://www.f2blog.com/"><a href="http://www.f2blog.com" target="_blank" title="http://www.f2blog.com" class="KeyWordStyle">F2BLOG<img src="http://blog.phptw.idv.twimages/f2.gif" border="0" alt=""/></a><img border="0" alt="" src="http://blog.f2cont.com/images/f2.gif" /></a>_ROOT./cache/20090624.log) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\in</div>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-204.html" /> 
  <id>http://blog.phptw.idv.tw/read-204.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[fsckvps 事件簿 後記]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-203.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-17.html" label="網際網路" /> 
  <updated>2009-06-28T15:28:56+08:00</updated>
  <published>2009-06-28T15:28:56+08:00</published>
  <content type='html'><![CDATA[<a href="https://secure.fsckvps.com/aff.php?aff=135" target="_blank" title="https://secure.fsckvps.com/aff.php?aff=135" class="KeyWordStyle">fsckvps<img src="http://blog.phptw.idv.twimages/keyword.gif" border="0" alt=""/></a> 被駭後，已經一段時間了，目前幾乎看起來是已經落幕了。<br />不過 所有資料遺失的&nbsp;客戶 可以免費得到 兩的月的 免費使用，不過&nbsp;資料 lost 了，免費使用兩的月似乎用意不大。<br />不過我將 新的 VPS server 從&nbsp;Atlanta 移到LA ，據說LA的線路比較好，<br />不過用起來似乎也才好一點點&nbsp;tracert 看起來是比較好，<br />不過實際&nbsp;LA 的vps&nbsp;run&nbsp;似乎沒有&nbsp;Atlanta 的server&nbsp;穩定多了，<br />而且 fsckvps 目前取消&nbsp;panel&nbsp;的管理介面&nbsp;。所有的需求都要送 ticket ，<br />實際上&nbsp;送了幾個&nbsp;support ticket 下來， 大約都要&nbsp;1-2&nbsp;兩才會處理好，<br />沒有實際上的&nbsp;panel&nbsp;好用多了...<br />而且 新的&nbsp;LA 機房&nbsp;只有&nbsp;20&nbsp;G&nbsp;＝&nbsp;＝<br />所有的服務都已經改到&nbsp;30&nbsp;G的&nbsp;空間了.]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-203.html" /> 
  <id>http://blog.phptw.idv.tw/read-203.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[fsckvps 事件簿]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-202.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-17.html" label="網際網路" /> 
  <updated>2009-06-28T15:23:19+08:00</updated>
  <published>2009-06-28T15:23:19+08:00</published>
  <content type='html'><![CDATA[<br /><div>關於這兩天 F2Cont 和 phptw 連不上的原因 ，是出在 f2cont.com 的DNS server 掛點了...</div><div>F2cont.com 的DNS server 是我自己在 亞特蘭大的 VPS server ，廠商為 <a href="https://secure.fsckvps.com/aff.php?aff=135" target="_blank" title="https://secure.fsckvps.com/aff.php?aff=135" class="KeyWordStyle">FsckVPS<img src="http://blog.phptw.idv.twimages/keyword.gif" border="0" alt=""/></a></div><div>這兩天 在全球hosting 發生了一件重大的事情，</div><div>就是 VPS sever 被hacked ，造成重大 災情產生，</div><div>&nbsp;</div><div>根據 FsckVPS 發給我的Email 內容：</div><div>At approx 10pm GMT last night a hacker gained access to our HyperVM install via what we believe was an unpatched exploit even though our HyperVM install was totally up to date. As part of this the hacker deleted b//ot on all of our VPS nodes as well as some VPS user data. Currently we are wo</div>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-202.html" /> 
  <id>http://blog.phptw.idv.tw/read-202.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[F2Cont 1.0 Beta 060624 6盎司非力牛 版]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-201.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-1.html" label="未分類文章" /> 
  <updated>2009-06-24T15:10:14+08:00</updated>
  <published>2009-06-24T15:10:14+08:00</published>
  <content type='html'><![CDATA[應&nbsp;&nbsp;white&nbsp;<span href="tag.php?name=F2Cont" onclick="tagshow(event)" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap; ">F2Cont</span>&nbsp;1.0 Beta 060624&nbsp; &nbsp;6盎司非力牛 版 發布了<br style="word-wrap: break-word; line-height: normal; " />目前只是測試版。<br style="word-wrap: break-word; line-height: normal; " /><br style="word-wrap: break-word; line-height: normal; " />真對 F2Cont 做了修正如下<br style="word-wrap: break-word; line-height: normal; " />1. 針對資料庫優化<br style="word-wrap: break-word; line-height: normal; " />2. 針對&nbsp;<span href="tag.php?name=spam" onclick="tagshow(event)" class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(255, 0, 0); white-space: nowrap; ">spam</span>&nbsp;內建預設的 filter 並更改規則<br style="word-wrap: break-word; line-height: normal; " />3. 安全性更新&nbsp;<a target="_blank" style="word-wrap: break-word; text-decoration: none; color: rgb(64, 80, 96); line-height: normal; " href="http://bbs.f2cont.com/thread-107-1-1.html">http://bbs.f2cont.com/thread-107-1-1.html</a><br style="word-wrap: break-word; line-height: normal; " /><br style="word-wrap: break-word; line-height: normal; " />安裝方式&nbsp;<br style="word-wrap: break-word; line-height: normal; " />下載後 解壓縮 並直接覆蓋掉他 然後 執行 update.php<br style="word-wrap: break-word; line-height: normal; " />例如&nbsp;&nbsp;<a target="_blank" style="word-wrap: break-word; text-decoration: none; color: rgb(64, 80, 96); line-height: normal; " href="http://blog.f2cont.com/update.php">http://blog.f2cont.com/update.php</a><br style="word-wrap: break-word; line-height: normal; " /><br style="word-wrap: break-word; line-height: normal; " />更新前請記得 備份相關檔案 和 資料庫<br style="word-wrap: break-word; line-height: normal; " /><br style="word-wrap: break-word; line-height: normal; " />下載：<img src="http://blog.phptw.idv.twimages/download.gif" alt="下載檔案" style="margin:0px 2px -4px 0px"/><a href="http://blog.phptw.idv.twdownload.php?id=141">f2cont.20090624.tar.gz.gz</a>&nbsp;(0 Byte , 下載:9次)&nbsp;&nbsp;(1.3 MB)&nbsp;<br style="word-wrap: break-word; line-height: normal; " />或到下載<a target="_blank" style="word-wrap: break-word; text-decoration: none; color: rgb(64, 80, 96); line-height: normal; " href="http://code.google.com/p/f2cont/downloads/list">http://code.google.com/p/f2cont/downloads/list</a>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-201.html" /> 
  <id>http://blog.phptw.idv.tw/read-201.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[轉載] 在 MySQL 中使用 index]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-200.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-3.html" label="MySQL" /> 
  <updated>2009-06-14T23:39:25+08:00</updated>
  <published>2009-06-14T23:39:25+08:00</published>
  <content type='html'><![CDATA[&nbsp;<span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px; ">以下文章 來至於&nbsp;Edison home<br />http://remindme.blogbus.com/logs/34133550.html<br /><br /><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 19px; color: rgb(85, 85, 85); "><p style="margin-top: 8px; margin-right: 0px; margin-bottom: 8px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">在 MySQL 中使用 index 時，下列是一些該注意的事：</p><ul style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; "><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: disc; list-style-position: inside; list-style-image: initial; ">在 MySQL 裡，將欄位設為 Primary 或 Unique 時，都同時具有 index 的效果。</li><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: disc; list-style-position: inside; list-style-image: initial; ">欲設為 index 的欄位長度是越短越好，這樣在維護 index table 時會快速一些；像 BLOB 與 TEXT 這類巨無霸型的資料型態，雖然在 MySQL 3.23.2 版之後也可以被設為 index 了，但還是少用為妙。</li><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: disc; list-style-position: inside; list-style-image: initial; ">欲設為 index 的欄位長度若是固定的話，會比變動的來得好。例如：同樣被設為 index，char(10) 的欄位，就比 varchar(10) 好。</li><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: disc; list-style-position: inside; list-style-image: initial; ">將多個欄位複合成為一組 index key 的話，要注意先後順序。例如：將「A＋B＋C」設為 index 時，下列的 SELECT 敘述將會使用到 index：<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " /><span class="myFont_12G" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">SELECT * FROM tbl_name WHERE A = val1;<br style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " />SELECT * FROM tbl_name WHERE A =</span></li></ul></span></span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-200.html" /> 
  <id>http://blog.phptw.idv.tw/read-200.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[F2Cont 安全行更新 20090601]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-199.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2009-06-14T23:38:34+08:00</updated>
  <published>2009-06-14T23:38:34+08:00</published>
  <content type='html'><![CDATA[&nbsp;原始資料來自於&nbsp;<a href="http://blog.f2cont.com/guestbook.html#book307" target="_blank" style="text-decoration: none; color: rgb(0, 0, 204); ">http://blog.f2cont.com/guestbook.html#book307</a><div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 11pt; line-height: 21px; "><br />請下載 path 檔案直接覆蓋&nbsp;<img src="http://blog.phptw.idv.twimages/download.gif" alt="下載檔案" style="margin:0px 2px -4px 0px"/><a href="http://blog.phptw.idv.twdownload.php?id=141">f2cont.20090624.tar.gz.gz</a>&nbsp;(0 Byte , 下載:9次)</div>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-199.html" /> 
  <id>http://blog.phptw.idv.tw/read-199.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[轉載] 軟體服務就像自來水 隨選即用]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-198.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-17.html" label="網際網路" /> 
  <updated>2009-06-14T23:37:22+08:00</updated>
  <published>2009-06-14T23:37:22+08:00</published>
  <content type='html'><![CDATA[&nbsp;<span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px; ">&nbsp;<span class="Apple-style-span" style="font-size: 12px; line-height: 16px; border-collapse: collapse; color: rgb(59, 70, 74); "><span class="Apple-style-span" style="color: rgb(0, 0, 128); font-size: 13px; ">產業趨勢》軟體服務像自來水 隨選隨用 &nbsp;</span><p style="margin-top: 15px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-size: 10pt; color: rgb(0, 0, 128); ">經濟日報／陳珮馨 2007.03.16 04:29 am</span></p><p style="margin-top: 15px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-size: 10pt; color: rgb(128, 128, 128); "><span style="color: rgb(51, 102, 255); ">網路革命風起雲湧，開放與分享的時代潮流，逐步吞噬傳統的軟體概念，近幾年炙手可熱的軟體服務化（Software as a service，SaaS），強調貼近使用者、共創分享平台，形成一股銳不可擋的全球趨勢。</span>&nbsp;<br /><br />2005年末，美國半導體市調權威國際數據資訊公司（IDC）大膽預測，Google效應發酵，促使企業的資訊科技（IT）支出逐步趨緩、以服務為導向的軟體支出倍增，進而引爆全球IT廠商，走向創造性破壞的商業模式。&nbsp;<br /><br />言猶在耳，宣稱將「摧毀軟體產業」的客戶關係管理服務供應商Salesf&nbsp;</span><a target="_BLANK" href="http://rce.com/" style="text-decoration: underline; color: rgb(22, 169, 205); "><span style="font-size: 10pt; color: rgb(128, 128, 128); ">rce.com</span></a><span style="font-size: 10pt; color: rgb(128, 128, 128); ">，旋即於2006年7月正式揮軍台灣；同年5月，宏碁電子化事業群汰換Siebel傳統銷售管理系統，轉身擁抱</span><a target="_BLANK" href="http://salesforce.com/" style="text-decoration: underline; color: rgb(22, 169, 205); "><span style="font-size: 10pt; color: rgb(128, 128, 128); ">Salesforce.com</span></a><span style="font-size: 10pt; color: rgb(128, 128, 128); ">的線上軟體服務，更具指標性意涵。&nbsp;<br /><br />上線快速、建置費用下降，是吸引宏碁琵琶別抱的原因之一。傳統的企業軟體需要三到六個月建置期，購買硬體設備、簽訂軟體授權合約、逐年繳交維護費用；</span><a target="_BLANK" href="http://salesforce.com/" style="text-decoration: underline; color: rgb(22, 169, 205); "><span style="font-size: 10pt; color: rgb(128, 128, 128); ">Salesforce.c</span></a></p></span></span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-198.html" /> 
  <id>http://blog.phptw.idv.tw/read-198.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[F2Cont] F2 開發進度]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-197.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2009-06-14T23:36:06+08:00</updated>
  <published>2009-06-14T23:36:06+08:00</published>
  <content type='html'><![CDATA[&nbsp;<span class="Apple-style-span" style="font-family: Verdana; font-size: 12px; line-height: 18px; "><span style="font-size: small; ">目前F2Cont 的程式發進度</span><ol><li><span style="font-size: small; ">強化&nbsp;DB&nbsp;的效率</span></li><li><span style="font-size: small; ">將google&nbsp;sitemap 那入 link 省去 登錄google 的動作</span></li><li><span style="font-size: small; ">加入預設的驗證機制，用來抵擋 spam</span></li></ol><span style="font-size: small; "><br />接下來預計進行的動作</span><ol><li><span style="font-size: small; ">製作&nbsp;百度&nbsp;sitemap&nbsp;</span></li><li><span style="font-size: small; ">修正「回覆留言」、評論 BUG</span></li></ol></span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-197.html" /> 
  <id>http://blog.phptw.idv.tw/read-197.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[感謝各位的支持]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-196.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2009-05-08T12:11:44+08:00</updated>
  <published>2009-05-08T12:11:44+08:00</published>
  <content type='html'><![CDATA[&nbsp;<span class="Apple-style-span" style="font-size: 16px; line-height: normal; "><span class="Apple-style-span" style="font-size: 13px; line-height: 21px; ">Dears,</span><div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 11pt; line-height: 140%; "><span style="font-size: small; "><br />感謝各位F2&nbsp;愛好者的支持，在這邊先跟各位講一下F2&nbsp;目前的近況，<br />目前&nbsp;F2&nbsp;cont 這邊已經找到&nbsp;resoure 了，將會架設 F2Cont 官方的論壇(主機在台灣)<br />目前所用的空間是我自行在北美承租的Server ，速度上稍微不是很好，只是便宜XD<br />未來主機改在台灣的話，速度會快很多，不過對於 大陸 香港地區的朋友&nbsp;還需要在測試一下<br />未來也可以提供&nbsp;官方團隊免費的Blog&nbsp;，可以自有domain 或用F2Cont&nbsp;的 domain，Server可以自選&nbsp;北美&nbsp;或 台灣主機，<br />未來也有可能會加入一些商業行的廣告，並竟需要金錢來維運相關的東西，不過會把商業性質降到最低，<br />這點可能會對部份&nbsp;自由軟體愛好者 先說聲抱歉，只要有 相關的 維運費用的話&nbsp;自然&nbsp;不再會有商業廣告出現<br />另外 F2Cont 官方的MSN群 ， google codes 相關東西也都申請好隨時可以運用了。<br /><br />在這邊對各位F2愛好者&nbsp;獻上&nbsp;<span style="color: rgb(255, 0, 0); ">10 萬分的感</span></span></div></span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-196.html" /> 
  <id>http://blog.phptw.idv.tw/read-196.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[F2 優化]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-195.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2009-05-08T12:10:46+08:00</updated>
  <published>2009-05-08T12:10:46+08:00</published>
  <content type='html'><![CDATA[&nbsp;<span class="Apple-style-span" style="font-size: 16px; line-height: normal; "><span class="Apple-style-span" style="font-size: 13px; line-height: 21px; ">F2 最為讓人詬病的問題就是速度過於慢，目前似乎有一點發現&nbsp;拖慢速度的原因出在哪裡了，</span><div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 11pt; line-height: 140%; "><span style="font-size: small; ">目前已經在進行測試當中，過一陣子就可以提供更新檔案讓各位&nbsp;f2&nbsp;愛好者下載。<br />不知道各位是否有覺得開F2&nbsp;cont 的開發部落落&nbsp;有更快&nbsp;的感覺？？</span></div></span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-195.html" /> 
  <id>http://blog.phptw.idv.tw/read-195.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[F2 招聘 人員]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-194.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2009-05-04T12:14:15+08:00</updated>
  <published>2009-05-04T12:14:15+08:00</published>
  <content type='html'><![CDATA[<span class="Apple-style-span" style="font-size: 12px; line-height: normal; color: rgb(108, 108, 108); white-space: pre; ">F2 招聘 人員 ，希望有志的各位 能夠一起來 延續 華人的blog 程序系統，<br />目前招聘人員如下<br /><ol><li>PHP 程序員(程式員) 數名</li><li>f2 測試人員 數名</li><li>美工設計人員 數名</li><li>推廣人員 數名</li></ol>如果各為有意願加入 f2 的團隊的話  ， 請留言給我<br type="_moz" /></span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-194.html" /> 
  <id>http://blog.phptw.idv.tw/read-194.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[關於F2] F2將由程序員接手]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-193.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2009-05-04T12:09:47+08:00</updated>
  <published>2009-05-04T12:09:47+08:00</published>
  <content type='html'><![CDATA[&nbsp;<span class="Apple-style-span" style="font-size: 16px; line-height: normal; "><span class="Apple-style-span" style="font-size: 13px; line-height: 21px; ">關於&nbsp;F2 的發展，目前 f2 blog 官方網站已經 失聯，並且 jerry 的blog 也上不去了，之前有 「風之逸」 發起的f2cont 計畫 也 因為大家過於忙碌， 造成進度停擺的狀態。</span><div style="background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 11pt; line-height: 140%; "><span style="font-size: small; ">目前決定將由我「</span><a target="_blank" href="http://blog.phptw.idv.tw"><span style="font-size: small; ">墮落程式</span></a><span style="font-size: small; ">」接手 繼續維護 f2 的部份 ，前一陣的非常感謝「風之逸」的盡心盡力 ，<br />目前的f2 發展方向為&nbsp;<br />1. 另行獨立 f2cont 版本的 blog系統出來，<br />2. 採用 GPL 的機制 ，讓他真正的成為 opensoure 的軟體<br /><br />不知道各位&nbsp;f2 的愛好者有無其他的建議或想法？<br />各位都可以提出意見，都會納入參考。</span></div></span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-193.html" /> 
  <id>http://blog.phptw.idv.tw/read-193.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[PHP][PHPExcel] PHPExcel讀檔案記憶體不夠 Fatal Error Allowed memory size of xxx]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-192.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-31.html" label="PHP 其他" /> 
  <updated>2009-03-20T10:57:42+08:00</updated>
  <published>2009-03-20T10:57:42+08:00</published>
  <content type='html'><![CDATA[<span style="font-size: small; ">前幾天在處理客戶Case&nbsp;時發現，PHPExcel&nbsp;在讀檔案的時候 會造成 php Fatal Error Allowed memory size of xxx 的問題，<br />客戶的檔案&nbsp;約有&nbsp;10000 record ， 5 MB 左右，當初在開發時 只有 500 record ，500KB 所有病沒有產生這樣的問題。<br />稍微用了一下google&nbsp;查資料&nbsp;，發現&nbsp;PHPExcel 似乎會產生大量的迴圈 ，這部份可以用&nbsp;var_dump 一下&nbsp;物件即可以知道<br />不過他吃了&nbsp;快要1G 的&nbsp;memory&nbsp;&nbsp; 有哪家的公司主機允許這樣子的吃法XD。<br />後來發現似乎有解 ，只要加入&nbsp;setReadDataOnly(true) 就可以解決了<br /><br /><!--more--><br />以下是原始程式<br />[codes=php]set_include_path(get_include_path() . PATH_SEPARATOR . &#39;./PHPExcel/Classes/&#39;);<br />/** PHPExcel */<br />i</span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-192.html" /> 
  <id>http://blog.phptw.idv.tw/read-192.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[YAHOO知識+]mysql兩次排序如做何]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-191.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-38.html" label="yahoo 知識+" /> 
  <updated>2009-03-08T22:40:16+08:00</updated>
  <published>2009-03-08T22:40:16+08:00</published>
  <content type='html'><![CDATA[<span style="font-size: small; ">以下是原文<br /><br /><br />&nbsp;id是主鍵,而且會自動增加 </span><div class="rte-wrapper" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; word-break: break-all; "><div class="main breakfix" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; word-wrap: break-word; word-break: break-all; zoom: 1; text-align: left; font-size: 16px; overflow-x: hidden; overflow-y: hidden; width: 617px; line-height: 1.5; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-size: small; ">用order by id desc<br /> 那就會從最後開始列<br /> 不過在我的資料表內有個欄位是top<br /> top的數字一定會先列出<br /> 如果top是1那就會在第一個,是2就會在第二個<br /> 那這樣sql語法要怎麼寫?<br /> 才可以做兩次排序<br /><br /><!--more--><br /><br /><em style="font-style: normal; font-weight: normal; position: relative; top: 1px; color: rgb(143, 143, 143); ">2006-05-09 10:28:02</em>&nbsp;補充</span></div></div></div><div class="supplement" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 10px; padding-left: 0px; "><ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; "><p style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; word-break: break-all; line-height: 1.5; text-align: left; font-size: 16px; "><span style="font-size: small; ">top 預設是n,有人輸入數字才會排在置頂<br /><br />     但不管怎樣,top如果有數字,一定會排在最前,如果有兩個top有數字,則依遞增排列<br /><br />     排完後在列id,而id是遞減排列<br /><br />     這樣用order by top,id 似乎就沒用了</span></p></li><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; "><span style="font-size: small; "><span class="time" style="color: rgb(143, 143, 143); text-align: left; display: block; margin-top: 20px; "><em style="font-style: normal; font-weight: normal; position: relative; top: 1px; color: rgb(143, 143, 143); ">2006-05-09 10:30:44</em>&nbsp;補充</span></span><p style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; word-break: break-all; line-height: 1.5; text-align: left; font-size: 16px; "><span style="font-size: small; ">因為一個是遞增,一個是遞減<br /><br />     但實做上順序應是先讓id遞減排序,然後在讓top做遞增</span></p></li><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: none; list-style-position: initial; list-style-image: initial; "><span style="font-size: small; "><span class="time" style="color: rgb(143, 143, 143); text-align: left; display: block; margin-top: 20px; "><em style="font-style: normal; font-weight: normal; position: relative; top: 1px; color: rgb(143, 143, 143); ">2006-05-10 11:26:30</em>&nbsp;補充</span></span><p style="margin-top: 5px; margin-right: 0px; margin-bottom: 5px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; word-wrap: break-word; word-break: break-all; line-height: 1.5; text-align: left; font-size: 16px; "><span style="font-size: small; ">看完各位大大寫的<br /><br />     我已經try成功了<br /><br />     謝謝大家<br /><br />&nbsp;</span></p><hr /></li></ul><span style="font-size: small; ">我的回答：<br /><br />下在mysql下的排序以order by asc來講<br /><br />null &gt; 空值 &gt; 數字 &gt; string<br /><br /><br /><br />假設資料庫理有以下資料 他的default 是 or</span></div>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-191.html" /> 
  <id>http://blog.phptw.idv.tw/read-191.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[轉載] 高性能網頁開發新20條規則詳解]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-190.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-17.html" label="網際網路" /> 
  <updated>2009-02-26T11:21:57+08:00</updated>
  <published>2009-02-26T11:21:57+08:00</published>
  <content type='html'><![CDATA[&nbsp;<span class="Apple-style-span" style="font-size: 12px; line-height: normal; ">[來源]&nbsp;<a href="http://vipnews.csdn.net/newscontent.aspx?pointid=2008_12_18_11184746" target="_blank">http://vipnews.csdn.net/newscont ... 2008_12_18_11184746</a><br /><br />&nbsp;&nbsp;上個月，Yahoo!優異性能（<a href="http://developer.yahoo.com/performance/" target="_blank">Yahoo!&#39;s Exceptional Performance</a>）開發團隊成員 Stoyan Stefanov 出席了蒙特利爾的2008魁北克PHP會議演講。他提供了他們團隊最新的研究成果和提高網頁性能規則20條。在早先的高性能網頁開發14條軍規已經讓大家耳熟能詳，此次新增的20條更加全面，覆蓋了伺服器端、cookies、頁面內容、JavaScript、CSS、圖片、移動手機應用這七大類別。以下內容就是根據這二十條結合個人在實際開發中的理解所做的全面解讀。希望對大家開發有所助益。<br /><!--more--><br /><br />閱讀指導：<br /><br />1. 每條規則後會指明是針對上述所說的七大類別中哪個類別的優化。<br /><br />2. 文中提到的一些工具在文後附注中會提供簡要說明。<br /><br />3. 文中經常提到&ldquo;元件&rdquo;這個詞，這個詞不同于我們程式開發中常提到的元件概念。本文中提到的&ldquo;組件&rdquo;特指嵌在HTML頁面中圖片、JavaS</span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-190.html" /> 
  <id>http://blog.phptw.idv.tw/read-190.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[Linux][CentOs] 續 proftpd + MySQL + virtual user @CentOs5]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-189.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-36.html" label="linux" /> 
  <updated>2008-12-12T10:24:01+08:00</updated>
  <published>2008-12-12T10:24:01+08:00</published>
  <content type='html'><![CDATA[proftpd.conf 檔如下<br /><br /><!--more--><br /><br />[codes=php]# This is the ProFTPD configuration file <br /># $Id: proftpd.conf,v 1.1 2004/02/26 17:54:30 thias Exp $ <br /><br />ServerName &quot;ProFTPD server&quot; <br />ServerIdent on &quot;FTP Server ready.&quot; <br />ServerAdmin root@localhost <br />ServerType standalone <br />#ServerType inetd <br />DefaultServer on <br />AccessGrantMsg &quot;User %u logged in.&quot; <br />#DisplayConnect /etc/ftpissue <br />#DisplayLogin /etc/ftpmotd <br />#DisplayGoAway /etc/ftpgoaway <br />DeferWelcome off <br /><br /># Use this to excude users from the chroot <br />#DefaultRoot ~]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-189.html" /> 
  <id>http://blog.phptw.idv.tw/read-189.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[F2cont] F2.Cont Ver 1.0 Beta 1202 版本发布]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-188.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2008-12-02T23:12:00+08:00</updated>
  <published>2008-12-02T23:12:00+08:00</published>
  <content type='html'><![CDATA[強化 驗證碼功能，目前不開放下載。<br />僅供測試。]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-188.html" /> 
  <id>http://blog.phptw.idv.tw/read-188.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[F2cont] F2.Cont Ver 1.0 Beta 1201 版本发布]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-187.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-21.html" label="F2Blog" /> 
  <updated>2008-12-01T21:56:59+08:00</updated>
  <published>2008-12-01T21:56:59+08:00</published>
  <content type='html'><![CDATA[新增 留言版&amp;評論 需要留Email 功能&nbsp;<br /><br />安裝完成後 可以在後台 「常規管理」 -&gt; 「博客設定」 -&gt; 「基礎設定」&nbsp; 看到選項開關<br /><br />下載解壓縮後上傳即可。請用F2.Cont Ver 1.0 Build 1130 進行path<br /><br />path 下載：<img src="http://blog.phptw.idv.twimages/download.gif" alt="下載檔案" style="margin:0px 2px -4px 0px"/><a href="http://blog.phptw.idv.twdownload.php?id=138">path.20081201.rar</a>&nbsp;(73.76 KB , 下載:111次)]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-187.html" /> 
  <id>http://blog.phptw.idv.tw/read-187.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[F2cont] 升級 F2.Cont Ver 1.0 Build 1130]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-186.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-35.html" label="最新消息" /> 
  <updated>2008-11-26T11:43:45+08:00</updated>
  <published>2008-11-26T11:43:45+08:00</published>
  <content type='html'><![CDATA[F2.Cont Ver 1.0 Build 1130&nbsp; 釋放出來了，剛剛給他用力的升級，<br />升級後發現＝＝，html 編輯器全都掛掉了。<br />後來嘗試著將 fckedit 刪掉但是還是不行，<br />最後把 edit/ 整得資料夾 刪掉 才正常＝＝<br />可能是自己手賤改了太多程式了吧＝..＝]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-186.html" /> 
  <id>http://blog.phptw.idv.tw/read-186.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[JavaScript] 檢查輸入值是否為數字 part 2 正規表示式]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-185.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-4.html" label="JavaScripts" /> 
  <updated>2008-11-25T12:15:24+08:00</updated>
  <published>2008-11-25T12:15:24+08:00</published>
  <content type='html'><![CDATA[<p>[JavaScript] 檢查輸入值是否為數字 part 2 正規表示式</p><p><textarea name="code" class="js" rows="15" cols="100">/* Function 1 : using Regular Expression*/ 
function isNumber(val){ 
var reg = /^[0-9]*$/; 
return reg.test(val); 
}</textarea></p><p>參考資料：<a href="http://lupinchen.blogspot.com/2008/04/javascript.html">http://lupinchen.blogspot.com/2008/04/javascript.html</a></p><p>&nbsp;</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-185.html" /> 
  <id>http://blog.phptw.idv.tw/read-185.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[F2blog] F2blog 主程式下載 1.2 版 build 0310]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-184.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-21.html" label="F2Blog" /> 
  <updated>2008-11-24T14:19:38+08:00</updated>
  <published>2008-11-24T14:19:38+08:00</published>
  <content type='html'><![CDATA[<p><span style="font-size: small; "><a href="http://www.f2blog.com" target="_blank" title="http://www.f2blog.com" class="KeyWordStyle">F2blog<img src="http://blog.phptw.idv.twimages/f2.gif" border="0" alt=""/></a> 目前已經有延續計畫了，</span></p><p><span style="font-size: small; "><font color="#000000">為了確保舊版的 F2blog 檔案還存在，在這邊 mirror 一份</font></span></p><p><span style="font-size: small; ">&nbsp;</span></p><p><span style="font-size: small; ">以下是來自F2BBLOG官方的訊息：</span></p><p><span style="font-size: small; "><!--more--></span></p><p><span style="font-size: small; ">F2blog v1.2 正式版是經過v1.1 beta 的測試後形成的最終穩定版本，在此感謝大家對F2blog的支持與厚愛。F2blog v1.2 正式版比F2blog v1.0 有了質的變化，無論在安全性、易用性、功能方面都有了強大的改進。</span></p><p><span style="font-size: small; ">主要功能：</span></p><ol><li><div><span style="font-size: small; ">強大的附件管理功能，支持目錄列表和數據庫列表兩種管理方式，可以支持遠程文件的調用和ftp上傳圖片，讓空間不足或流量有限制的朋友可以通過申請多個免費空間來達到分散流量和空間的目的。用F2blog實現一個播客站，音樂站，視頻站，下載站都不成問題。</span></div></li><li><div><span style="font-size: small; ">完善的插件管理方式，讓懂php程序的朋友非常容易開發自己需要的插件，同時官方也提供了豐富的插件，供用戶使用，我們還可以根據用戶的需求，幫您定制插件。</span></div></li><li><div><span style="font-size: small; ">豐富的皮膚，完全與pjblog的皮膚共用（通過了pjblog的官方授權），從而無需擔心皮膚不漂亮，F2blog官方也會寫出更多的皮膚，供Pjblog的使用者使用。</span></div></li><li><div><span style="font-size: small; ">強大的數據備份與恢複，支持分卷備份與恢複，在</span></div></li></ol>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-184.html" /> 
  <id>http://blog.phptw.idv.tw/read-184.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[F2cont] F2Blog 延續計畫]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-183.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-37.html" label="F2cont" /> 
  <updated>2008-11-16T20:20:35+08:00</updated>
  <published>2008-11-16T20:20:35+08:00</published>
  <content type='html'><![CDATA[<p><a href="http://www.f2blog.com" target="_blank" title="http://www.f2blog.com" class="KeyWordStyle">F2blog<img src="http://blog.phptw.idv.twimages/f2.gif" border="0" alt=""/></a> 沈寂了一陣子 ，自從官方 Terry 不再更新和官方網站上不去後，</p><p>F2blog 跟 以死的程序 沒兩樣了，造成 大部分的F2blog 用戶轉換程序(wordpress)</p><p>目前由「風之逸」從組 開發小組並命名為 F2cont，</p><p>希望此小組 可以 將F2blog 延續下去</p><p><!--more--></p><p>以下是官方資料：</p><p>f2cont团队也是为热忱而成立，坚持Free &amp; Freedom的初衷，努力完善华人自己的blog程序。<br />F2blog be Continued =&gt; f2cont.com</p><p>&nbsp;</p><p>F2cont 官方網站：<a href="http://www.f2cont.com">www.f2cont.com</a></p><p>&nbsp;</p><p>&nbsp;</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-183.html" /> 
  <id>http://blog.phptw.idv.tw/read-183.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[PHP][MySQL] MySQL 資料區分大小寫]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-182.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-3.html" label="MySQL" /> 
  <updated>2008-10-30T18:28:47+08:00</updated>
  <published>2008-10-30T18:28:47+08:00</published>
  <content type='html'><![CDATA[<p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">今天在處理客戶Bug 時 發現 ，使用者登入帳號 有兩筆 frances 但是 卻大小寫不一致 frances 和 Frances ，如下圖</span></p><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><img height="118" style="cursor:pointer;" onclick="open_img(&#39;http://blog.phptw.idv.twattachments/200810/4695624207.jpg&#39;)" alt="http://blog.phptw.idv.twattachments/200810/4695624207.jpg" width="459" src="http://blog.phptw.idv.tw/http://blog.phptw.idv.twattachments/200810/4695624207.jpg" /></span></p><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">不管用&nbsp; frances&nbsp;還是  Frances&nbsp; 登入 都會判斷為第 一筆資料 ，很明顯的是 大小寫的問題</span></p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">解決方法有好幾種：如下</span></p></span><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><!--more--></span></p><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><font color="#000000">1. <span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px/29px Verdana; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: 2px; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">第一種方法是在查詢語句中欄位名稱前加上關鍵字「BINARY 」</span></font></span></p><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px/29px Verdana; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: 2px; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><textarea name="code" class="sql" rows="15" cols="100">SELECT * FROM tablename WHERE BINARY column = &#39;value&#39;;</textarea></span></span></span></p><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">2. 建立資料表時使用「BINARY的屬性」</span></p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px/29px Verdana; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: 2px; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><textarea name="code" class="sql" rows="15" cols="100">CREATE TABLE `dbname`.`tablename ` (
`columnname` VARCHAR( 10 ) BINARY
)</textarea></span></span></span></p><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px/29px Verdana; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: 2px; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">3. 使用 MySQL中用字符集編碼 使用 bin 型態 ，</span></span></span><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px/29px Verdana; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: 2px; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">詳細資料如下表</span></span></span></p><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px/29px Verdana; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: 2px; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">以下為 MySQL 5.0 的所有 字符集編碼 資料</span></span></span></p><p><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px/29px Verdana; TEXT-TRANSFORM: none; COLOR: rgb(51,51,51); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: 2px; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0"><span class="Apple-style-span" style="WORD-SPACING: 0px; FONT: 12px Tahoma; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; TEXT-ALIGN: left; orphans: 2; widows: 2; webkit-border-horizontal-spacing: 0px; webkit-border-vertical-spacing: 0px; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0">字符集編碼, 描述 <br />armscii8 (ARMSCII-8 Armenian) <br />armscii8_bin 亞美尼亞語, 二</span></span></span></p></span>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-182.html" /> 
  <id>http://blog.phptw.idv.tw/read-182.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[MIS 筆記] IIS FTP 虛擬目錄]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-181.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-27.html" label="MIS 筆記" /> 
  <updated>2008-09-17T12:14:35+08:00</updated>
  <published>2008-09-17T12:14:35+08:00</published>
  <content type='html'><![CDATA[<p>這幾天幫客戶設定 IIS 的FTP，原本是另一家協力廠商要設定(只是太OOXX，能力不好一直推責任)，</p><p>最後為了趕時只好自行幫客戶設定，用了google 查了一下相關資料才發現 IIS FTP&nbsp;的虛擬目錄跟想像中不太一下</p><p>&nbsp;</p><p>例如：</p><p>iis 預設 ftp 路徑為 C:\Inetpub\ftproot&nbsp; 下 ，如果要新增一個 www.phptw.idv.tw. 的虛擬路徑的話。</p><p>www.phptw.idv.tw 對應到 D:\www\www.phptw.idv.tw</p><p>則 必需要先新增一個 www.phptw.idv.tw&nbsp;的資料夾 至&nbsp; C:\Inetpub\ftproot</p><p>在將&nbsp;www.phptw.idv.tw 對應 至 D:\www\www.phptw.idv.tw</p><p>才會正常的顯示資料</p><p>&nbsp;</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-181.html" /> 
  <id>http://blog.phptw.idv.tw/read-181.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[F2Blog] 新增 留言版&評論 需要留Email 功能]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-180.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-21.html" label="F2Blog" /> 
  <updated>2008-09-10T16:52:25+08:00</updated>
  <published>2008-09-10T16:52:25+08:00</published>
  <content type='html'><![CDATA[<p>照網友提出需求&nbsp; 「留言版&amp;評論 需要留Email 功能&nbsp;」，剛好可能也有需要所以加入了此功能</p><p>安裝完成後 可以在後台 「常規管理」 -&gt; 「博客設定」 -&gt; 「基礎設定」&nbsp; 看到選項開關</p><p><a href="http://blog.phptw.idv.tw/read-170.html#book19">http://blog.phptw.idv.tw/read-170.html#book19</a></p><p>註： 並非所有網友要求均都會 去撰寫程式 ， F2 blog 還是有官方 維護團隊，一切需求均都以官方為基準。</p><p><br /><a href="Javascript:open_more('More1669','MoreLess1669','查看...','關閉...')" id="More1669">查看...</a>
<div id="MoreLess1669" style="display:none"></p><p>或者下載更新檔</p><p>1. 更新檔(<a href="http://www.f2blog.com" target="_blank" title="http://www.f2blog.com" class="KeyWordStyle">F2blog<img src="http://blog.phptw.idv.twimages/f2.gif" border="0" alt=""/></a> v1.2 build 03.01 適用) <img src="http://blog.phptw.idv.twimages/download.gif" alt="下載檔案" style="margin:0px 2px -4px 0px"/><a href="http://blog.phptw.idv.twdownload.php?id=129">f2blog.path.by.blog.phptw.idv.tw.tar.gz</a>&nbsp;(46.77 KB , 下載:50次)</p><p>2. 完整版(F2blog v1.2 build 03.01) + 更新檔 <a target="_blank" href="http://blog.phptw.idv.tw/data/F2blog.v1.2.build.03.01.path.by.blog.phptw.idv.tw.tar.gz">下載</a></div></p><p>或者下載更新檔</p><p>1. 更新檔(F2blog v1.2 build 03.01 適用) <img src="http://blog.phptw.idv.twimages/download.gif" alt="下載檔案" style="margin:0px 2px -4px 0px"/><a href="http://blog.phptw.idv.twdownload.php?id=129">f2blog.path.by.blog.phptw.idv.tw.tar.gz</a>&nbsp;(46.77 KB , 下載:50次)</p><p>2. 完整版(F2blog v1.2 build 03.01) + 更新檔 <a target="_blank" href="http://blog.phptw.idv.tw/data/F2blog.v1.2.build.03.01.path.by.blog.phptw.idv.tw.tar.gz">下載</a></p><p><!--more--></p><p>開啟 adminsetting_default.php，在檔案最尾端加入</p><p>[codes=php]$arr_setting[]=&quot;(&#39;isEmailCheck&#39;,&#39;0&#39;,&#39;0&#</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-180.html" /> 
  <id>http://blog.phptw.idv.tw/read-180.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[PHP] 取得副檔名的方法]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-179.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-29.html" label="PHP 教學" /> 
  <updated>2008-09-01T11:24:32+08:00</updated>
  <published>2008-09-01T11:24:32+08:00</published>
  <content type='html'><![CDATA[<p><textarea name="code" class="php" rows="15" cols="100">// 如果想要得知某個檔案的副檔名，可以利用 strrchr() 

$extend = strrchr($filename, &quot;.&quot;);</textarea></p><p><!--more--></p><p><textarea name="code" class="php" rows="15" cols="100">/* 
$filename 是 abc.gif 
則 $extend 會是 .gif （ 
*/ 

/* 
建議統一把副檔名變成小寫，以免在不同作業系統下出問題。 
方法就是多加一個 strtolower() 函式，像以下這樣： 
*/ 
$extend = strtolower(strrchr($filename, &quot;.&quot;)); 

/** 
* 或者可以另用另一種方法 
*/ 
/* 把 $filename 做 . 切割字串 */ 
$aryExtend=explode(&quot;.&quot;,$filename); 
/** 
* $filename 是 abc.gif 
* $aryExtend為陣列 
*/ 
end($aryExtend); // 將陣列指標移到最後 
$extend=$aryExtend[array_keys($aryExtend)];</textarea></p><p>&nbsp</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-179.html" /> 
  <id>http://blog.phptw.idv.tw/read-179.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[PHP] [Array] 如何刪除索引陣列中的值]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-178.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-2.html" label="PHP" /> 
  <updated>2008-08-26T13:58:22+08:00</updated>
  <published>2008-08-26T13:58:22+08:00</published>
  <content type='html'><![CDATA[<p>如何刪除索引陣列中的值。</p><p><textarea name="code" class="php" rows="15" cols="100">&lt;?php 
$error_descriptions[1] = &quot;A fatal error has occured&quot;; 
$error_descriptions[2] = &quot;PHP issued a warning&quot;; 
$error_descriptions[8] = &quot;This is just an informal notice&quot;; 


unset($error_descriptions[2]);&nbsp;&nbsp; // 刪除 $error_descriptions[2] 資料

print_r($error_descriptions); 

?&gt; </textarea></p><p>&nbsp;</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-178.html" /> 
  <id>http://blog.phptw.idv.tw/read-178.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[Javascript] 實現網頁列印 自動分頁 自動列印]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-177.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-4.html" label="JavaScripts" /> 
  <updated>2008-08-21T14:38:42+08:00</updated>
  <published>2008-08-21T14:38:42+08:00</published>
  <content type='html'><![CDATA[<p>JavaScript 實現網頁列印 自動分頁 自動列印</p><p>&nbsp;</p><p><!--more--></p><p>[codes=js]/** <br />* @package js.printer <br />* @author wenchi <br />* @version 20080821 <br />* <br />* IE 5.5 6.0 7.0 測試OK <br />* firefox 部份功能不適用 <br />* Opera , Safari 未測試 <br />* <br />*/ <br /><br />/** <br />* HOWTO: <br />* <br />* 第一種方式： <br />* <br />* 1. 於 &lt;head&gt;&lt;/head&gt; 之間加入 <br />* &lt;script src=&quot;js.printer.js&quot;&gt;&lt;/script&gt; <br />* <br />* &lt;script&gt; <br />* var JsPrinter=new JsPrinter(); <br />* &lt;/script&gt; <br />* <br />* 2. 於 &lt;body&gt;&lt;/body&gt; 之間 加入 <br />* <br />* &lt;a href=&quot;#&quot; onclick=&quot;JsPrinter.splitPage();&quot;&gt;分頁&lt;/a&gt; &</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-177.html" /> 
  <id>http://blog.phptw.idv.tw/read-177.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[F2Blog 外掛&插件 顯示台灣BloggerAds 廣告 安裝方式]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-176.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-21.html" label="F2Blog" /> 
  <updated>2008-07-12T15:33:03+08:00</updated>
  <published>2008-07-12T15:33:03+08:00</published>
  <content type='html'><![CDATA[<p>顯示台灣BloggerAds 廣告 安裝方式</p><p>下載外掛程式，</p><p>然後在解壓縮檔案，解壓縮檔案後會有一個資料夾 ，名稱為「BloggerAds」，</p><p>裡面共會有兩個</p><ol><li>BloggerAds.php　　　外掛程式</li><li>BloggerAds.txt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BloggerAds 所提供的link </li></ol><p>請用記事本 或任何文字編輯器，打開BloggerAds.txt 檔案，並將bloggerads 所提供的 link 放入即可</p><p>然後在將整個資料夾 「BloggerAds」 上傳到 <a href="http://www.f2blog.com" target="_blank" title="http://www.f2blog.com" class="KeyWordStyle">F2Blog<img src="http://blog.phptw.idv.twimages/f2.gif" border="0" alt=""/></a>&nbsp; 資料夾&nbsp;plugins 理</p><p>接下再來只要再到後台 「介面模組」-&gt;「模組設定」 去設定 BloggerAds 即可</p><p>&nbsp;</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-176.html" /> 
  <id>http://blog.phptw.idv.tw/read-176.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[Linux][PHP] ionCube loader 和 Zend Optimizer 共存]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-175.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-36.html" label="linux" /> 
  <updated>2008-07-02T20:32:23+08:00</updated>
  <published>2008-07-02T20:32:23+08:00</published>
  <content type='html'><![CDATA[<p>ionCube loader 和 Zend Optimizer 共存實際上必不難，</p><p>只要注意一下載入的先後優先順序 ionCube 一定要修先於 Zend 否則一定會失敗</p><p>詳細設定檔如下</p><p>[Zend]<br />zend_extension=/usr/local/ionCube/lib/ioncube_loader_lin_5.1.so<br />zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3<br />zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3<br />zend_optimizer.version=3.3.3<br />zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so<br />zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so<br />zend_optimizer.optimization_level=15<br /></p><p>ionCube load</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-175.html" /> 
  <id>http://blog.phptw.idv.tw/read-175.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[Linux] 防 ssh 暴力攻擊 使用iptables & shell  @ CentOS]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-174.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-36.html" label="linux" /> 
  <updated>2008-06-30T22:06:14+08:00</updated>
  <published>2008-06-30T22:06:14+08:00</published>
  <content type='html'><![CDATA[<p>原則上 ssh port 能不要全部開啟事最好的，如果一定要開啟的話，必需要作些防護措施，</p><p>port 22 一旦開啟後最容易遇到的就是會有人不斷的try密碼</p><p>&nbsp;</p><p>設計原理：</p><ol><li>抵擋 ssh 暴力攻擊 </li><li>如果連續攻擊3次以上則抵擋 </li><li><font color="#000000">利用 TCP-Wrapper 偵測是否有登入失敗 ，有失敗才執行shell&nbsp;</font></li></ol><p>&nbsp;</p><p>mkdir /etc/firewall/</p><p>touch /etc/firewall/sshd.sh</p><p>chmod 755 /etc/firewall/sshd.sh</p><p>vi /etc/firewall/sshd.sh</p><p>寫入以下資料</p><p>#!/bin/bash</p><p># 檔案存放的路徑<br />basedir=&quot;/etc/firewall&quot;</p><p># log 存放的地方<br />sshlog=&quot;/var/log/auth.log&quot;</p><p># mail for<br />mailfor=&quot;root&quot;</p><p># 登入錯誤訊息<br />faildMsg=&quot;sshd.*Failed password&quot;<br />faildMsgInvalid=&quot;sshd.*Failed password f</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-174.html" /> 
  <id>http://blog.phptw.idv.tw/read-174.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[Linux] iptables for VPS 主機 @CentOs]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-173.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-36.html" label="linux" /> 
  <updated>2008-06-30T21:59:04+08:00</updated>
  <published>2008-06-30T21:59:04+08:00</published>
  <content type='html'><![CDATA[<p>mkdir /etc/firewall </p><p>touch /etc/firewall/iptables.sh</p><p>chmod 755 /etc/firewall</p><p>vi /etc/firewall/iptables.sh</p><p>寫入以下內容</p><p>&nbsp;</p><p>#!/bin/bash</p><p># 檔案存放的路徑<br />basedir=&quot;/etc/firewall&quot;</p><p># Setup VPS main IP here<br />VPSIP=&quot;202.153.194.177&quot;</p><p># DNS IP<br />DNSIP=&quot;168.95.1.1 139.175.55.244&quot; # NS1 NS2 of ISP</p><p># ssh whitelist<br />sshWhitelist=&quot;202.153.194.130 220.130.226.181 220.135.28.160 59.120.206.94&quot; </p><p># stop RedHAT linux iptables<br />service&nbsp; iptables stop</p><p># Setting default filter policy DROP ALL :D<br />iptables </p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-173.html" /> 
  <id>http://blog.phptw.idv.tw/read-173.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[PHP][Linux] PHP安全性加強 抵擋 駭客 存取 linux 下的 /etc/password]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-172.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-31.html" label="PHP 其他" /> 
  <updated>2008-06-25T23:24:32+08:00</updated>
  <published>2008-06-25T23:24:32+08:00</published>
  <content type='html'><![CDATA[<p align="left">近日公司部份客戶發現有被hacker 嘗試的 存取 linux 下的 /etc/passowrd 檔，請參照下圖</p><p align="left"><img height="439" style="cursor:pointer;" onclick="open_img(&#39;http://blog.phptw.idv.twattachments/200806/9567811677.jpg&#39;)" alt="http://blog.phptw.idv.twattachments/200806/9567811677.jpg" width="389" src="http://blog.phptw.idv.tw/http://blog.phptw.idv.twattachments/200806/9567811677.jpg" /></p><p align="left">很明顯的看到是在要取得 password 檔的內容，另外在從MySQL資料庫中也發現到</p><p align="left"><font size="2">看到這幾筆資料 , 就覺得有問題了:</font></p><p align="left"><font size="2">|&nbsp;44 | `cat /etc/passwd`&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-172.html" /> 
  <id>http://blog.phptw.idv.tw/read-172.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[站務][道歉啟事]]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-171.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-35.html" label="最新消息" /> 
  <updated>2008-06-20T00:22:16+08:00</updated>
  <published>2008-06-20T00:22:16+08:00</published>
  <content type='html'><![CDATA[<p>[道歉啟事] </p><p>本站有部份資料是來自於網路文章，或同事貢獻的文章，只做摘錄存檔。</p><p>部份找的出處的文章均都會附上來源，對於部份原始作者 ，如果不願意 接受轉載，均可以告知一聲，</p><p>並將會將其文章刪除掉，對於「砍掉重練真的比較好嗎？」該文作者造成不便。</p><p>在這邊致上12萬分的歉意，目前已經該文刪除，並會於近期內刪除一些找不到出處來源的文章。</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-171.html" /> 
  <id>http://blog.phptw.idv.tw/read-171.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[Linux][CentOs] proftpd + MySQL + virtual user @CentOs5]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-170.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-36.html" label="linux" /> 
  <updated>2008-06-19T22:53:54+08:00</updated>
  <published>2008-06-19T22:53:54+08:00</published>
  <content type='html'><![CDATA[<p>&nbsp;</p><p>安裝proftp MySQL 模組，位於 sentos 上可以找到 rpm 安裝<br />[root@phptw home]#yum install proftpd-mysql</p><p>登入 MySQL <br />[root@phptw home]#mysql -u root -p</p><p>或可以輸入<br />[root@phptw home]#mysql --user=root --host=localhost --password=密碼</p><p><br />執行下面SQL 語法<br /><textarea name="code" class="sql" rows="15" cols="100">
create database proftpdb;</textarea></p><p>建立使用者 proftpd&#39;@&#39;localhost 表示 用 proftpd&nbsp; 這個user 登入 MySQL ，其中passwd 為登入密碼<br /><textarea name="code" class="sql" rows="15" cols="100">CREATE USER &#39;proftpd&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;passwd&#39;;</textarea></p><p>設定權限<br />[codes=sql]GRANT USAGE ON * . * TO &#39;proftpd&#39;@&#</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-170.html" /> 
  <id>http://blog.phptw.idv.tw/read-170.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[站務] BLOG 搬移完成]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-169.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-35.html" label="最新消息" /> 
  <updated>2008-06-18T22:04:07+08:00</updated>
  <published>2008-06-18T22:04:07+08:00</published>
  <content type='html'><![CDATA[<p>BLOG 搬移完成，大工程....</p><p>還好多要搬＝..＝</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-169.html" /> 
  <id>http://blog.phptw.idv.tw/read-169.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[站務] FTP 設完成]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-168.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-35.html" label="最新消息" /> 
  <updated>2008-06-18T22:03:33+08:00</updated>
  <published>2008-06-18T22:03:33+08:00</published>
  <content type='html'><![CDATA[<p>主機移機後的FTP已經設定玩成了，慢一點再把 設定FTP的過程PO上來</p><p>&nbsp;</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-168.html" /> 
  <id>http://blog.phptw.idv.tw/read-168.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[站務] 更換主機商]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-167.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-35.html" label="最新消息" /> 
  <updated>2008-06-18T21:43:21+08:00</updated>
  <published>2008-06-18T21:43:21+08:00</published>
  <content type='html'><![CDATA[<p>更換主機商了，從北美的 波士頓機房 到 台灣的是方機房 ＝ ＝&quot;</p><p>速度快多了...</p><p>摳摳也變多了....</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-167.html" /> 
  <id>http://blog.phptw.idv.tw/read-167.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[JavasSript] 隱藏式DIV選單]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-166.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-4.html" label="JavaScripts" /> 
  <updated>2008-06-04T19:56:10+08:00</updated>
  <published>2008-06-04T19:56:10+08:00</published>
  <content type='html'><![CDATA[<p>[codes=php]&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt; <br />&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; <br />&lt;head&gt; <br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt; <br />&lt;title&gt;無標題文件&lt;/title&gt; <br /><br />&lt;style&gt; <br /><br />/*產品介紹/廠商連結*/ <br />.BR{ <br />display:block; <br />width:920px; <br />margin:0 auto; <br />text-align:right; <br />margin-bottom:20px; <br />border-bottom-width: 1px;</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-166.html" /> 
  <id>http://blog.phptw.idv.tw/read-166.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[JavasSript] 將 url 的參數打包成 php 的 $_GET array]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-165.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-4.html" label="JavaScripts" /> 
  <updated>2008-05-30T11:09:25+08:00</updated>
  <published>2008-05-30T11:09:25+08:00</published>
  <content type='html'><![CDATA[<div><font face="新細明體" size="2">下面一段javascript 程式碼是 利用 javascript 模擬 php 的程式</font></div><div>&nbsp;</div><div><font face="新細明體" size="2">目的是在模擬 php 的 全域變數 $_GET&nbsp; 方便 從 php 轉換到 javascript </font></div><div><font face="新細明體" size="2">強烈建議將程式碼放在 載入 所有的javascript 之前</font></div><div>&nbsp;</div><div><!--more--></div><div><br />[codes=js]&lt;script&gt;<br />/**<br />*&nbsp;將 url 的參數打包成 php 的 $_GET array<br />*&nbsp;@author wenchi <br />*&nbsp;@version 20080530<br />*&nbsp;@see <a href="http://blog.phptw.idv.tw/read-165.html">http://blog.phptw.idv.tw/read-165.html</a><br />*&nbsp;@example&nbsp; <a href="products.php?offset=&amp;type=all&amp;contributory=all&amp;applicable=all">URL:products.php?offset=&amp;type=all&amp;contributory=all&amp;applicable=all</a>&nbsp;<br />*&nbsp;@example&nbsp; alert($_GET[&#39;offset&#39;]);&nbsp;&nbsp;//&nbsp;輸出空白字元<br />*&nbsp;@example&</div>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-165.html" /> 
  <id>http://blog.phptw.idv.tw/read-165.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[序][PHP] PHP 程式設計標準]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-164.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-34.html" label="php葵花寶典" /> 
  <updated>2008-05-16T12:02:00+08:00</updated>
  <published>2008-05-16T12:02:00+08:00</published>
  <content type='html'><![CDATA[<p><br />PHP 程式設計標準</p><p><!--more--><br />&nbsp;<br />最常見的習慣為：<br />1. 變數 $a1 和 $al&nbsp; 傻傻分不清楚，盡量少用 會混淆的東西當 變數名稱和 function<br />&nbsp;&nbsp;<textarea name="code" class="php" rows="15" cols="100">$r=mysql_query($SQL);
&nbsp;&nbsp;&nbsp; $a＝mysql_fetch_array($r);</textarea><br />&nbsp;&nbsp;&nbsp; 可改為<br />&nbsp;&nbsp;&nbsp; <textarea name="code" class="php" rows="15" cols="100">$result=mysql_query($SQL);
&nbsp;&nbsp;&nbsp; $aryDetail=mysql_fetch_array($result);</textarea><br />&nbsp;</p><p>&nbsp;&nbsp;&nbsp; <textarea name="code" class="php" rows="15" cols="100">function q ($s){
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $s;
&nbsp;&nbsp;&nbsp; }</textarea><br />&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; 可改為<br />&nbsp;&</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-164.html" /> 
  <id>http://blog.phptw.idv.tw/read-164.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[PHP] [PHP100例] No.44 調用文本文件內容]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-163.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-32.html" label="PHP100 實例" /> 
  <updated>2008-05-15T12:02:00+08:00</updated>
  <published>2008-05-15T12:02:00+08:00</published>
  <content type='html'><![CDATA[<p>PHP 100 實例，第44題。</p><p><!--more--></p><p><br /><textarea name="code" class="php" rows="15" cols="100">&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;調用文本文件內容&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;CENTER&gt;
&lt;?
&nbsp;// 打開文件同時，列印每一行
&nbsp;$myFile = file( &quot;data.txt&quot;);
&nbsp;for($index = 0; $index &lt; count($myFile); $index++)
&nbsp;{
&nbsp;&nbsp;print($myFile[$index].&quot;&lt;BR&gt;&quot;);
&nbsp;}
?&gt;
&lt;/CENTER&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;</textarea></p><p>&nbsp;</p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-163.html" /> 
  <id>http://blog.phptw.idv.tw/read-163.html</id> 
</entry>	
<entry>
  <title type="html"><![CDATA[[PHP] [PHP100例] No.43 訪問文件常見屬性]]></title>
  <author>
	 <name>phptw</name>
	 <uri>http://blog.phptw.idv.tw/read-162.html</uri>
	 <email>service@phptw.idv.tw</email>
  </author>
  <category term="NA" scheme="http://blog.phptw.idv.tw/category-32.html" label="PHP100 實例" /> 
  <updated>2008-05-13T12:02:00+08:00</updated>
  <published>2008-05-13T12:02:00+08:00</published>
  <content type='html'><![CDATA[<p>PHP 100 實例，第43題。</p><p><!--more--></p><p><br /><textarea name="code" class="php" rows="15" cols="100">&lt;HTML&gt;
&lt;HEAD&gt;
&lt;TITLE&gt;訪問文件常見屬性&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;BR&gt;
&lt;?
&nbsp;print(&quot;文件的所有者（UID 值）：&quot;);
&nbsp;print(fileowner(&quot;data.txt&quot;).&quot;&lt;br&gt;&quot;);
&nbsp;print(&quot;文件的大小：&quot;);
&nbsp;print(filesize(&quot;data.txt&quot;).&quot;&lt;br&gt;&quot;);
&nbsp;print(&quot;文件的類型：&quot;);
&nbsp;print(filetype(&quot;data.txt&quot;).&quot;&lt;br&gt;&quot;);
?&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;</textarea></p>]]></content>
  <link rel="alternate" type="text/html" href="http://blog.phptw.idv.tw/read-162.html" /> 
  <id>http://blog.phptw.idv.tw/read-162.html</id> 
</entry>	
</feed>