[freetds] PHP & FreeTDS

Petar Djekic pdjekic at smail.uni-koeln.de
Sat Aug 14 20:20:02 EDT 2004


Hello,

i have a Problem getting PHP and FreeTDS running together. Im using
FreeTDS to access an remote SQL 2K server. Ive build FreeTDS using:

'./configure --prefix=/usr/local/freetds --with-tdsver=7.0
--enable-msdblib --enable-dbmfix --disable-libiconv'

and PHP using './configure --mssql=/usr/local/freetds --mysql=/usr
--with-apxs2=/etc/httpd/bin/apxs' and few others..

both complied fine and PHP says its got mssql support in the
phpinfo()..i can connect to the mssql database via tsql too.

now when i run an php script just containing '<?php $sql =
mssql_connect(server, user, pass) ?>' i get an 'Zero Sized Reply'
Error..accessing the local mysql database via PHP works fine.

Also, how can i run any SQL queries in tsql?

Thanks for your efforts,
Petar





More information about the FreeTDS mailing list