2012年6月27日 星期三
2012年6月13日 星期三
2012年5月29日 星期二
PHP 與 MySQL 溝通的資料編碼問題
PHP 和 MySQL 雙方傳遞資料的編碼要正確才能避免亂碼的問題。
要避免亂碼的問題以下兩個條件必須使用一致的編碼:
1. 網頁在瀏覽器所使用的編碼
2. MySQL Client 設定使用的編碼
針對 PHP 和 MySQL 間溝通所使用的編碼,
我們可以使用 mysql_client_encoding 來確認目前 MySQL Client 所使用的編碼,
並用 mysql_set_charset 來做設定的動作。
Reference:
mysql_client_encoding
mysql_set_charset
要避免亂碼的問題以下兩個條件必須使用一致的編碼:
1. 網頁在瀏覽器所使用的編碼
2. MySQL Client 設定使用的編碼
針對 PHP 和 MySQL 間溝通所使用的編碼,
我們可以使用 mysql_client_encoding 來確認目前 MySQL Client 所使用的編碼,
並用 mysql_set_charset 來做設定的動作。
Reference:
mysql_client_encoding
mysql_set_charset
2012年4月3日 星期二
RFC2544
Throughput:
a. Specific rate
b. Specific frame size
c. Binary Search ( Fail = Reduce the rate)
d. Result = Maximum rate ( frames/second or bits/second)
Latency:
a. Maximum rate (Result of throughput testing)
b. Specific corresponded frame size
c. Option:
c-1 Store and Forward (LIFO)
c-2 Bit Forwarding (FIFO)
c-3 Cut Through (LILO)
d. Result =>time interval
Frame Loss Rate:
a. Specific maximum rate (100% Utilization)
b. Specific frame size
c. Binary Search (Fail = Reduce the maximum rate (10% interval))
d. Result: Frame loss rate (%)
Back-to-Back:
a. Minimum inter-frame gap
b. Send a specific number of frames
c. Binary Search (Reduce the length of burst)
d. Result: Frame count
a. Specific rate
b. Specific frame size
c. Binary Search ( Fail = Reduce the rate)
d. Result = Maximum rate ( frames/second or bits/second)
Latency:
a. Maximum rate (Result of throughput testing)
b. Specific corresponded frame size
c. Option:
c-1 Store and Forward (LIFO)
c-2 Bit Forwarding (FIFO)
c-3 Cut Through (LILO)
d. Result =>time interval
Frame Loss Rate:
a. Specific maximum rate (100% Utilization)
b. Specific frame size
c. Binary Search (Fail = Reduce the maximum rate (10% interval))
d. Result: Frame loss rate (%)
Back-to-Back:
a. Minimum inter-frame gap
b. Send a specific number of frames
c. Binary Search (Reduce the length of burst)
d. Result: Frame count
訂閱:
文章 (Atom)