Click to See Complete Forum and Search --> : php and sybase


the mitzman
01-15-2003, 02:47 PM
Hey guys, I'm trying to get php-sybase stuff to work. I did a
rpm -qa |grep php
and it shows the following

php-imap-4.1.2-1mdk
php-readline-4.1.2-1mdk
php-common-4.1.2-1mdk
php-gd-4.1.2-1mdk
php-ldap-4.1.2-1mdk
php-pgsql-4.1.2-1mdk
php-sybase-4.1.1-1mdk
mod_php-4.1.2-1mdk
php-4.1.2-1mdk
php-mysql-4.1.2-2mdk


So php-sybase is there which is installed. However, when I try to do
sybase_connect("dbserver", "user", "password");
I get a
Fatal error: Call to undefined function: sybase_connect() in /var/www/html/news/index.php on line 33

I've been researching this for quite a while now and can't figure out what to do to get this working. Any ideas guys? I'm trying to get this going at work and I'm the only linux guy here so nobody else can really help. I did however convince the higher ups that our new tech support website should be on a linux system :)

Anyway any help would be super appreciated so I can try to get this going.


-Dave

Hayl
01-15-2003, 02:56 PM
it may be something to do with your php.ini file ?? just a guess.

the mitzman
01-15-2003, 03:09 PM
Well I found out that sybase.so is there and installed so in php.ini I added the following line...

extension=sybase.so

However when I restart apache and when I try to hit my webpage with sybase_connect on it I get a connection refused error (but the server is listening on the ports!).
If I comment out the sybase_connect line it works fine. What to do?

-Dave