唉~有一好沒兩好的hosting

之前都在說~startlogic和ipower不好~
現在玩域名寄存之後~
Anhosting(midphase)卻不是這麼順利
話最~最近我去弄了一堆域名回來~
startlogic和ipower都提供了park domain的功能
而且~也有custom dns的設定
所以~在申請DNS設定的時候~
只要指向startlogc或是ipower提供的dns server就好

而Anhosting卻沒有提供park domain的功能(也許我買的package沒有)
都只能加addon domain addon domain只能新增60個也就算了
DNS解析的部份要自己做~
使用Freedns來設定DNS是可行的,但是更新速度
真的慢到讓人會怕~我睡一個覺起來~還判定我的域名是broken

broken意思是說~全球12台的DNS root server還沒有我所設定的資料
一天才檢查一次,正確之後~狀態才會正常
真的蠻不順的

最近玩了鯊魚網/co.cc/freedns/twbbs.org….都是各有優缺
慢是最主要的一個原因

另外~google webmaster的DNS更新也很慢
中華電信/台灣固網的DNS都更新了~
連YAHOO的站長工具都能用了
他還找不到…..鳥鳥的google

兩天後~他終於找到那個subdomain了….

網域名稱的實驗~免費二級域名

照了網路上的說明~
去申請了俄羅斯的免費域名
第一次申請的時候~沒有注意到時間
超過配額~
第二次再申請的時候~就在兩個小時後收到認証信~申請通過

烏克蘭的二級域名~是申請憑證~再寄送憑證申請
之前我有申請過一次~失敗

次這 把google翻譯搬出來~申請第一次就成功
不過~DNS卻在6個小時候後work

會用到的資源網址有2個
第1個 google 翻譯
第2個 郵政總局的地址翻譯

網路上的說明 寫的沒有很清楚
電話號碼的格式是

+886 空格 區碼 空格 號碼
網路上的說明也是舊的 現在申請烏克蘭的憑証
Email中就有超連結了~可以直接認證
當然 原來回信認證的方式一樣可以用

哈哈~多了俄羅斯和烏克蘭的域名……
還不知道~要放什麼東西才好咧…

PS. 1.com.ru 公司型的俄羅斯域名,目前已經停止提供申請…
PS. 2.不要用Google直接對網路翻譯,這樣會造成網頁運作異常

用mysql的trigger完成ping service

因為進行wordpress的二次開發
無法自動進行PING的動作
所以~花了時間去研究一下 mysql 的trigger要怎麼做
目前可以做到的~
在新增文章~或是更新文章的時候~
會自動新增(修改)另一個資料表
只要一個小程式~就可以判斷哪些文章還沒有PING過~
或是那一篇文章~修改過了~待PING

玩起來~還蠻有趣的~
今天~晚上算是玩樂~
而不是工作~哈哈

joomla 測試~

看到它的架構~
感覺起來~真的蠻不錯的~
但是….這個CMS級的系統~
拿來當Blog~功能卻不怎麼樣….
xml-rpc上傳圖片會失敗….
中文化…其實還好…
後台管理蠻複雜的~
不適合給一般使用者使用
倒是很多學校~大型公司使用
小公司哦….那就算了唄…

中文化小組說~他唸起來像「君啦」
可是~唸起來應該像~「豬母啦」~
哈哈~以後就叫他豬母系統好了….

wordpress 二次開發

外面一堆文章說wordpress的使用者編碼是MD5
其實~測試的結果是~他可以接受2種編碼
第一種編碼~我不確定是什麼編碼方式~
長的像這樣 $P$BU2RGPBzC0ITA918rljQxn.EYW3ul5/
第二種編碼~MD5 hash
長的像這樣 481ab5322e207670008856dafdb74bda
假設~我們使用MD5編碼去改「忘記」的密碼(mysql/phpmyadmin)
是可以登入的~但是….登入之後~MD5編碼會被改掉
所以…..再用原來的password登入之後~
就會登入失敗~
所以…如果要做二次發的時候
……..怎麼辦咧
還是有可能前台後來進進出出…
只好蠻幹~登入之前這麼做
查看看這個使用者在不在~不在的話~就insert這個使用者
如果在的話….就去更新密碼
但是….問題又來了~
wordpress的使用者權限是記在wp_usermeta中~該不會又要再塞一次值吧!
實在給他#$%^&*()(*&^%$……..遜到爆

DOM-XML issue of PHP

I use a package to generor the rss feed, but it show the message as below.

Warning: require_once(class.DomDocument.inc.php) [function.require-once]: failed to open stream: No such file or directory in…

The it will show me the fatal erro, It could not load file ‘class.DomDocument.inc.php’.
But the file does not include in the package.
And I could run these file in another server, so I guest the question made from a addon of php.

I modify the code to get the debug message:
class.RSSItemList.inc.php
class.ObjectList.inc.php
class.RSSItem.inc.php
class.RSS_V_200.inc.php
class.RSS_V_abstract.inc.php
class.DomDocument.inc.php <—-it does not include this file in the package.

I research the data in the google, someone says that , it need the libxml2 library.
But in the default ver. of apache in the linux platform, it include already.
And I research the others file about the XML and DOM.
Finaly, I got the answer, It need php-domxml addon.
Just install it through yum, and don’t forget restart apache.
Let the apache reload the php.ini , and it will load the addon for php.

command as below.
yum install php-domxml
service httpd restart

Virtual Host to Enablye the Header Rewrite.

If we got the message show as as below, we may not enablye the apache rewrite function.
2009-02-28_071618.png
To enable this function we should modify the httpd.conf.
Add these command line in the virual host block

RewriteEngine On
Options +FollowSymlinks

To save the httpd.conf and Restart the apache.
when you wirte the .htaccess file without errors, and
your will get the rewrite function.
if not, you man find out the issue from the log.