Skip to Content.
Sympa Menu

freetds - Re: FreeTDS with PHP connect problems

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Myers Carpenter" <myers AT fil.org>
  • To: gerry AT ship-to-order.com
  • Cc: freetds AT franklin.oit.unc.edu
  • Subject: Re: FreeTDS with PHP connect problems
  • Date: Wed, 21 Feb 2001 14:42:18 -0500 (EST)


>I'm using FreeTDS with PHP4 trying to connect to SQL Server 7. The
>libraries are working fine as I've written a lot of C code using them.
>I've compiled freetds into PHP according to the instructions. However,
>with PHP, every call to mssql_connect fails. It's as if it can't see my
>interfaces file (my only guess anyway), but I do have:
>
>sybase.interface_file = "/usr/local/freetds/interfaces"
>
>in my php.ini file. Might anyone be able to offer me further guidance?

Have you tried?:
<?php

putenv("SYBASE=/usr/local/freetds");

?>

This may not work with safe mode on in php.

The other idea is to set the Enviroment var in Apache's config.

myers





Archive powered by MHonArc 2.6.24.

Top of Page