configure php-4.0.5
./configure --with-apache=/usr/local/apache_1.3.19 --enable-track-vars --enable-trans-sid --with-imap=/export/home/admin/src/imap-4.7/c-client --with-mysql=/usr/local/mysql --with-oci8=/app/db/oracle --enable-sigchild
my program connect oracle db
putenv('ORACLE_HOME=/app/db/oracle');
putenv('TNS_ADMIN=/app/db/oracle/network/admin');
putenv("NLS_LANG=american_taiwan.zht16big5");
$ORACLE_USER_NAME="test";
$ORACLE_USER_PASS ="test";
$ORACLE_SID="hsdb";
$db = OCIPLogon($ORACLE_USER_NAME,$ORACLE_USER_PASS,$ORACLE_SID);
$stmt=OCIParse($db,"SELECT id,alias,msg from guestbook");
OCIExecute($stmt);
when i use the oracle user use the
sqlplus connect db I can see the correct chinese word but when i run my program on web
it can connect db but show chinese word have some problem.
ID: amy ALIAS: ???? MSG: ???????? ID: amy2 ALIAS: himsg MSG: ????2 ID: iepe ALIAS: yime MSG: ????
???? -> chinese word .
please help me thanks