[freetds] Connecting MSSQL Server from Red Hat linux + PHP
Arnar Birgisson
ArnarB at oddi.is
Wed Jul 2 16:13:36 EDT 2003
Hi
I'm sorry I didn't ask before, but php 4.0.3pl1 is quite old by now and
probably doesn't contain ms-dblib style support for FreeTDS. You need to
upgrade to 4.3.2RC1 or newer.
Arnar
>>> "Venkatraman M Srinivasan" <mlmsrini at lycos.com> 2.7.2003 14:10:44
>>>
Hi
i build php again like this.
(Here the version i am using is php4.0.3pl1. when i first install i
build php --with-apache=/usr/local/apache_1.3.12.)
make clean
./configure --with-apache=/usr/local/apache_1.3.12
--with-mysql=/usr/local/mysql --with-mssql=/usr/local/freetds
--enable-memory-limit=yes --enable-track-vars
make
make install
cp php.ini-dist /usr/local/lib/php.ini
restarted apache.
But phpinfo is still describing the same old value. ie
'./configure --with-apache=/usr/local/apache_1.3.12
--with-mysql=/usr/local/mysql --enable-memory-limit=yes
--enable-track-vars'
Still i am getting the same error 'Fatal error: Call to undefined
function: mssql_connect() in /home/httpd/test/test.php on line 4'.
As you mentioned i 've got two freetds.conf files.one is in
/usr/local/freetds folder and the other one is in /usr/local/etc. In
both the files
i 've mentioned the IP address inside host since i don't know which one
to use.
[MyServer70]
host = 192.168.4.45 // MSSQL Server IP address
port = 1433
tds version = 7.0.
Here i would like to ask you a question about the interfaces file.In
which case it is used.
Also i tried to execute the script in command line.
php /home/httpd/test/test.php
...but i am getting 'command not found'.
still things are not working for me..immm.
your suggestions?
Thanks
svan
____________________________________________________________
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail!
http://login.mail.lycos.com/r/referral?aid=27005
More information about the FreeTDS
mailing list