Problems with MSSQL
| From: | James Cornman | Date: | Mon, 24 Sep 2001 14:22:51 +0000 |
| Subject: | Problems with MSSQL | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-12676@lists.php.net to get a copy of this message | ||
Hello. I'm have PHP 4.0.6 compiled as a DSO module for Apache. From the
command line (with the same ./configure line, with out the --with-apxs
paramater) it runs fine, but from the web, it is unable to connect to my
MSSQL server. I've configured php --with-sybase=/usr/local/freetds. I've
tried changing versions of just about everything, but nothing yet works.
Here is the source of the php script.
Thanks in advance
<?
putenv("SYBASE=/usr/local/freetds");
putenv("LD_LIBRARY_PATH=/usr/local/freetds/lib");
putenv("TDSVER=70");
$sql = mssql_connect('nacas','argon','<SNIP>') or
die("Could not connect to
SQL\n");
?>