[freetds] php + mssql

benny iskandar liauwsiauwlong at hotmail.com
Mon Jan 6 11:57:51 EST 2003


Hi Frank ,
thx , but I have a problem to in sybase , I tried to :
1. install freetds 0.6 at /usr/local
2. it's done
3. try reinstall php 4.3.0
4. ./configure --with-sybase=/usr/local
5. make
6. make install
7. done

but I don't get it , cause I editing php.ini
need sybase.interface_file = "etc/freetds/interfaces" ,
in Freetds 0.6 no need interface file ?

then I execute phpinfo() , it say included :
--with-mysql=shared,/usr' '--with-unixODBC=shared,/usr' 
'--with-recode=shared,/usr' '--enable-xslt' '--with-xslt-sablot=shared,/usr' 
'--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-sybase-ct=shared,/usr' 
  <==== it suppose run ???

, but till now say :
'Call to undefined function: sybase_connect() ' ???


----Original Message Follows----
From: "Frank M. Kromann" <frank at kromann.info>
Date: Sun, 05 Jan 2003 18:36:28 -0800

Hi,

With php 4.3.0 you can use --with-mssql, and if you installed freetds in
/usr/local you dont need to specify a directory. You need to use the
mssql_* functions and not the sybase_*

- Frank

 > hi, all ...
 >
 > First thanks to FreeTds creator , cause make me get a new street
 > for programming database , but
 >
 > I have a problem to connect my php 4.3.0 to mssql or sybase ,
 > I already try the guide line in www.freetds.org :
 >
 > 1. install freetds
 > 2. ./configure --with-sybase=/usr/local
 > 3. make
 > 4. make install
 > 5. done
 > 6. reinstall php
 > 7. ./configure --with-sybase=/usr/local
 > 8. make
 > 9. make install
 > 10. done
 > 11. apachectl restart
 > 12. done
 >
 > but my test.php view error like :
 > 'Call to undefined function: sybase_connect() '
 >
 > any one could help me ?
 >
 > _________________________________________________________________
 > Protect your PC - get McAfee.com VirusScan Online
 > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
 >
 > _______________________________________________
 > FreeTDS mailing list
 > FreeTDS at lists.ibiblio.org
 > http://lists.ibiblio.org/mailman/listinfo/freetds
 >



_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




More information about the FreeTDS mailing list