via PHP to Microsoft SQL Server V7.0

Brian Bruns camber at umcc.ais.org
Mon Jan 17 20:20:14 EST 2000


Are you using 0.50 or the current from CVS?  There was a problem with
setting the location of the interfaces in php.ini although I can't
remember if this was fixed before 0.50 or after...also see if you can run
'make test' from the distribution directory (you need to edit the PWD file
to put your login info in).  Anyway, this will run some unittests to see
if the interfaces is correct and the server is responding.

brian


On Tue, 18 Jan 2000, James Cameron wrote:

> Okay, Brian, I've found some stuff in INSTALL that explains the
> interfaces file usage and the SYBASE environment variable.  Doesn't seem
> to make any difference though.
> 
> # echo $SYBASE
> /tmp/freetds
> # cat $SYBASE/interfaces
> giskard
>         query tcp ether 10.0.0.2 4000
>         master tcp ether 10.0.0.2 4000
> 
> I've also set php3.ini so that it contains ...
> 
> [Sybase]
> sybase.interface_file  =       "/tmp/freetds/interfaces"
> 
> But the connect still fails, without explaining why.  Using strace I see
> that the php3.ini file is read, but there are no attempts to read the
> interfaces file.  There is also no connect() made, nor does tcpdump show
> any activity.  I suspect a PHP problem.  I will investigate further
> using the debugger.
> 
> -- 
> James Cameron                                      (cameron at stl.dec.com)
> 
> http://www.linux.org/ http://www.linux.org.au/ http://www.freshmeat.net/
> 
> ---
> You are currently subscribed to freetds as: camber at ais.org
> To unsubscribe, forward this message to $subst('Email.Unsub')
> 
> 




More information about the FreeTDS mailing list