note 7819 added to mssql_connect
| From: | josh at afraid dot org | Date: | Wed, 16 Aug 2000 10:06:52 +0000 |
| Subject: | note 7819 added to mssql_connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1945@lists.php.net to get a copy of this message | ||
Has anyone had any luck getting MSSQL to work under FreeBSD? Is there no way to get a more verbose
error like WHY a link cannot be established?
I am using freetds using the version 7.0, and I do have my interfaces file configured properly for
mssql. This worked just fine on Slackware 7.0.
I have compiled soo many times. After installing Apache 1.3.12 I compile PHP with this:
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--enable-versioning \
--with-mysql \
--with-ftp \
--with-gd=/usr/local/gd1.3 \
--with-sybase=/usr/local/freetds \
--enable-bcmath=yes \
--disable-debug \
--enable-memory-limit=yes \
--enable-track-vars
Also in php.ini under [Sybase]:
sybase.interface_file = "/usr/local/freetds/interfaces"
Server info:
Apache/1.3.12 (Unix) PHP/4.0.1pl2 mod_perl/1.24 mod_ssl/2.6.6 OpenSSL/0.9.5a
PHP Code used up until the point of error:
<?
include("globals.php");
mssql_connect("$host", "$user", "$pass");
-- SNIP --
The functions DO exist, but they don't seem to work!
Warning: Sybase: A link to the server could not be established in /usr/local/apache/htdocs/mssql.php
on line 8
Warning: -1 is not a Sybase link index in /usr/local/apache/htdocs/mssql.php on line 9
Warning: 0 is not a Sybase result index in /usr/local/apache/htdocs/mssql.php on line 13
http://www.php.net/manual/function.mssql-connect.php