Skip navigation.

JL空间

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

Posts tagged with "mssql"

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.


January 2010
S M T W T F S
December 2009February 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