note 20746 added to ref.mssql
| From: | elee at kinwai dot net | Date: | Mon, 15 Apr 2002 02:29:05 +0000 |
| Subject: | note 20746 added to ref.mssql | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-29351@lists.php.net to get a copy of this message | ||
The belows procedures works on the following configuration: Mandrake linux 8.2,MS Sql server 2000,
windows 2000 server, PHP ver 4.12, apache 1.3.24,Freetds 0.53.
Configure Freetds
1. Download Freetds 0.53 at www.freetds.org
2. ./configure --prefix=/usr/local/freetds --with-tdsver=7.0
3. make
4. make install
5. Edit /usr/local/freetds/etc/freetds.conf
6. Add
[MyServer70] ¡¥DSN for PHP
host = 10.23.52.114 ¡¥MS SQL Server IP
port = 1433 ¡¥MS SQL Default Port
tds version = 7.0 ¡¥MS SQL 2000 Version No.
client charset = UTF-8 ¡¥Charset Encoding, it can be omitted if you don't want to disply in
unicode
Configure PHP 4.12
1. Download PHP4 from www.php.net
2. ./configure --with-sybase=/usr/local/freetds --with-apache=../{Apache Path} --enable-track-vars
3. copy all files in /usr/local/freetds/lib/ to /usr/lib
4. make
5. make install
Configure Apache 1.3.24
1. ./configure --activate-module=src/modules/php4/libphp4.a
2. make
3. make install
4. cp php.ini-dist /usr/local/lib/php.ini
5. Edit Your httpd.conf or srm.conf file and add;
AddType application/x-httpd-php .php
6. /usr/local/apache/bin/apachectl start
Feel free to email to us @ aikok@netfront.net or elee@kinwai.net
German Chu & Eagle Lee
--
http://www.php.net/manual/en/ref.mssql.php
http://master.php.net/manage/user-notes.php?action=edit+20746
http://master.php.net/manage/user-notes.php?action=delete+20746
http://master.php.net/manage/user-notes.php?action=reject+20746