April 18, 2011

如何在Linux下擴展PHP的mb-string功能

檢查系統中是否有安裝yum這個套件

#  rpm -qa yum

確定已安裝後將權限提升至root進行安裝作業

避免因權限不足而產生錯誤訊息

#  su - root

開始利用yum來進行mb-string安裝

#yum -y install php-mbstring

安裝完畢後打開/etc/php.ini 開啟mb-string功能

mbstring.language = Neutral
mbstring.internal_encoding = UTF-8
mbstring.http_input = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = long;
mbstring.func_overload = 1

編輯完畢後重新啟用httpd服務即可

# /etc/init.d/httpd restart


Today's Visitors: 0 Total Visitors: 2
Personal Category: 軟體教學 Topic: learning / education / linguistic
[Trackback URL]

Post A Comment









Yes No



Please input the magic number:

( Prevent the annoy garbage messages )
( What if you cannot see the numbers? )
Please input the magic number

誰來收藏
Loading ...
unlog_NVPO 0