《PHP編程:php pdo oracle中文亂碼的快速解決方法》要點:
本文介紹了PHP編程:php pdo oracle中文亂碼的快速解決方法,希望對您有用。如果有疑問,可以聯(lián)系我們。
PHP應用在/etc/profile.d/簡歷oracle.sh
PHP應用內容如下在NLS_LANG設置編碼
PHP應用
ORACLE_HOME=/usr/lib/oracle/12.1/client64
C_INCLUDE_PATH=/usr/include/oracle/12.1/client64
LD_LIBRARY_PATH=$ORACLE_HOME/lib
#remember this is the client NLS_LANG not the server one
NLS_LANG=FRENCH_FRANCE.UTF8
export ORACLE_HOME LD_LIBRARY_PATH NLS_LANG
PHP應用然后修改 /etc/init.d/php-fpm
PHP應用在頭部增加
PHP應用
. /etc/profile.d/oracle.sh
. /etc/init.d/functions
. /etc/profile.d/oracle.sh
# Check that networking is up.
. /etc/sysconfig/network
# Additional environment file
if [ -f /etc/sysconfig/php-fpm ]; then
. /etc/sysconfig/php-fpm
fi
if [ "$NETWORKING" = "no" ]
then
exit 0
fi
RETVAL=0
prog="php-fpm"
pidfile=${PIDFILE-/var/run/php-fpm/php-fpm.pid}
lockfile=${LOCKFILE-/var/lock/subsys/php-fpm}
PHP應用然后重新啟動php即可
PHP應用以上這篇php pdo oracle中文亂碼的快速解決辦法就是小編分享給大家的全部內容了,希望能給大家一個參考,也希望大家多多支持維易PHP.
轉載請注明本頁網(wǎng)址:
http://www.fzlkiss.com/jiaocheng/6624.html