Skip navigation.

JL空间

contact to me: liuping.james#gmail.com (use @ replace #)

Posts tagged with "freebsd"

FreeBSD6,PHP connect ms sql server 2000

, ,

i think it is the simplest way to fix it.

first install php5 and php5-extensions

Install with php5-extensions, u must check mssql(default it is uncheck).

Notice install process, u will it will install freetds(google it).

Install ok...you should do

cp /usr/local/etc/freebsd.conf.dist /usr/local/etc/freebsd.conf
chmod +r /usr/local/etc/freebsd.conf
ee freebsd.conf
delete # with [MyServer2k] and its sub item. host changed to sql server's ip.

php code like:

mssql_connect('MyServer2k', $dbuser, $dbpass);

mssql function u find it in php handbook.

and u should add line to MyServer2k,,it will help me to solve chinese word show.

client charset = utf-8.


freebsd 6 fcitx config

,

tcsh:
1,~/.cshrc:
setenv LC_ALL zh_CN.eucCN
setenv LANG zh_CN.eucCN
setenv LC_CTYPE zh_CN.eucCN
2,~/.xinitrc:
export XMODIFIERS="@im=fcitx"
#fcitx &
#exec startkde
exec xfce4
3,startx

just simple statement, i cost many time on it.

so i log it.

and its sequence must like it.
December 2009
S M T W T F S
November 2009January 2010
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31