Tagged with " code"

No Thumbnail

PHP 5.2.1 on FC4 x86_64 compile note

Linking libraries from its default location ln -s /usr/include /opt/include ln -s /usr/lib64 /opt/lib Now configuring with new location: ./configure [...]

Apr 21, 2007     No Comments
Read More
No Thumbnail

OpenVPN on FC4 note

Server yum install openvpn cp -R /usr/share/openvpn/easy-rsa /etc/openvpn cd /etc/openvpn/easy-rsa vim vars: # easy-rsa parameter settings # NOTE: If you [...]

Apr 15, 2007     1 Comment
Read More
No Thumbnail

Bluehost 筆記

結果選了 Bluehost。原因很多而且說不清,但是簡單說就是讀了很多 BH Forum 上面的文章後最後 follow my heart 所作的決定。是不是因為裡面 moderator 說 BH 是 CEO 的 baby 我不知道,反正綜合了很多文章最後內心裡面的奇妙邏輯決定要 BH 的。 有關 [...]

Apr 4, 2007     3 Comments
Read More
No Thumbnail

Ajax 筆記

過去幾天一直在摸 AJAX 的相關東西,而跟以前不同的是,這次有下去實作。實作的內容是寶貝哈泥的作業,我想應該是不會拿去交啦,有點類似國小在教小畫家但是拿 Photoshop 的作品去交件。趁還記得把一些心得記下來: Prototype.js: $( ) 是超級好朋友,省了好多字 $( ) 不能用在 radiobutton 上 超省時 XMLHttpRequest Syntax: ob = new [...]

Apr 2, 2007     1 Comment
Read More
No Thumbnail

Ajax 的 responseText 中文亂碼問題

剛剛在實驗 element.innerHTML = AJAX.responseText 時候碰到了中文亂碼問題,稍微找了一下,以下是最簡單的解法。 假設 AJAX.open('POST', 'cgi.php', true), 然後 cgi.php 要輸出中文的內容,那記得在輸出前先丟個 header: header('Content-Type:text/html;charset=big5'); 問題解決。 對付 responseXML 時候把 text/html 改成 [...]

Mar 30, 2007     2 Comments
Read More