Fatal error: Call to undefined function sybase_connect()
Posted by: davidc2 (---.dyn.dsl.cantv.net)
Date: June 15, 2009 08:42PM

I installed WAMP and activated (checked) the php_sybase_ct extension, but when I try the code below, I get this error:
Call to undefined function sybase_connect()

Code:
<?php
$link = sybase_connect("localhost", "dba", "sql"winking smiley
or die("Could not connect !"winking smiley;
echo "Connected successfully";
sybase_close($link);
?>

I don´t think it´s related to the parameters since the error seems to be related to the library...

If I try mysql_connect, it does work, and if I uncheck php_mysql, it stops working, so php.ini is being updated when I change the options...

Any suggestions?

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: June 15, 2009 08:50PM

did u open the php.ini


left click wamp>php>php.ini


and make sure the sybase ext has no ";" or " " infornt of it..

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: davidc2 (---.dyn.dsl.cantv.net)
Date: June 15, 2009 08:56PM

yeah, php.ini:
(...)
;extension=php_sqlite.dll
extension=php_sybase_ct.dll
;extension=php_tidy.dll
(...)

Unless sybase_connect is not in sybase_ct, I honestly have no idea... Been looking all day for a solution but apparently people just end up getting freedts... I don´t want extra libraries though, and I´m using Windows, freetds seems to be linux only..

Either way, I want to make sure I can´t use sybase_connect before I move to freetds or whatever..

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: June 15, 2009 09:10PM

it is part of it.. but maybe try pconnect

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: davidc2 (---.dyn.dsl.cantv.net)
Date: June 15, 2009 09:11PM

Fatal error: Call to undefined function sybase_pconnect()

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: davidc2 (---.dyn.dsl.cantv.net)
Date: June 15, 2009 09:19PM

echo extension_loaded('sybase_ct');
prints blank, i.e. nothing..


echo extension_loaded('mysql');
prints 1.

That is weird...

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: davidc2 (---.dyn.dsl.cantv.net)
Date: June 15, 2009 09:28PM

Interesting, php error log:

[15-Jun-2009 14:55:06] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.2.9-2/ext/php_sybase_ct.dll' - the specified module could not be found.

in Unknown on line 0

[15-Jun-2009 14:55:06] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.2.9-2/ext/php_sybase_ct.dll' - the specified module could not be found.

in Unknown on line 0

--
the file is there though...

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: June 15, 2009 09:41PM

searched around and it seems to be an issue with php 5.2

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: davidc2 (---.dyn.dsl.cantv.net)
Date: June 15, 2009 09:45PM

Not good... sad smiley

Any way to fix this?

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: June 15, 2009 09:46PM

downlaod another versoin of php from the addon page above? or find a new copy of the ext( i couldnt find a link tho)

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: davidc2 (---.dyn.dsl.cantv.net)
Date: June 15, 2009 10:18PM

Got it, but it says it is not compatible with my version of Apache...

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: davidc2 (---.dyn.dsl.cantv.net)
Date: June 15, 2009 11:13PM

It doesn´t seem to be related to the version because I just installed AppServ 2.4.9, which uses an older version of PHP, and I get the same error...

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: toumimi (---.241.115-78.rev.gaoland.net)
Date: June 15, 2009 11:27PM

Hi,

I found several comments for some dll not working..
You may have a look at [bugs.php.net] and [bugs.php.net]

It seems that external libraries are required...

EDIT : I have found where you can download those dll for a specific php version or platform : [www.sybase.com]

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com



Edited 3 time(s). Last edit at 06/16/2009 12:00AM by toumimi.

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: davidc2 (---.dyn.dsl.cantv.net)
Date: June 16, 2009 04:26PM

Little problem, they are running Adaptive Server Anywhere in here (an older version of SQL Anywhere), but OK I´m trying to get the dll for it.

This document has the details for what I want
[www.sybase.com]

I'll post back if I get this going... Otherwise I´ll have to create a SQL Anywhere server, and try that...

Options: ReplyQuote
Re: Fatal error: Call to undefined function sybase_connect()
Posted by: davidc2 (---.dyn.dsl.cantv.net)
Date: June 16, 2009 04:49PM

Well all of the above was impossible, and there´s no easy way it seems to get the Adaptiver Server Anywhere php libraries, considering they are quite old..

I tried ODBC though, and it works just fine..

If you need help setting it up, use this
[www.w3schools.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.