Sybase_ct Problem
Posted by: remzi (---.as01.esk1.superonline.com)
Date: November 16, 2006 03:53PM

what can I do this problem?

----------------------------------------------------------------------------------
#error:

Fatal error: Call to undefined function sybase_connect() in C:\server\www\test\sybase_test1.php on line 3
----------------------------------------------------------------------------------
#code:

<?php
$link = sybase_connect('SYBASE', '', '')
or die("Could not connect !"winking smiley;
echo "Connected successfully";
sybase_close($link);
?>
----------------------------------------------------------------------------------
#php.ini:

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

;extension
extension=php_sybase_ct.dll

[Sybase]
; Allow or prevent persistent links.
sybase.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
sybase.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
sybase.max_links = -1

;sybase.interface_file = "/usr/sybase/interfaces"

; Minimum error severity to display.
sybase.min_error_severity = 10

; Minimum message severity to display.
sybase.min_message_severity = 10

; Compatability mode with old versions of PHP 3.0.
; If on, this will cause PHP to automatically assign types to results according
; to their Sybase type, instead of treating them all as strings. This
; compatability mode will probably not stay around forever, so try applying
; whatever necessary changes to your code, and turn it off.
sybase.compatability_mode = Off

[Sybase-CT]
; Allow or prevent persistent links.
sybct.allow_persistent = On

; Maximum number of persistent links. -1 means no limit.
sybct.max_persistent = -1

; Maximum number of links (persistent + non-persistent). -1 means no limit.
sybct.max_links = -1

; Minimum server message severity to display.
sybct.min_server_severity = 10

; Minimum client message severity to display.
sybct.min_client_severity = 10
----------------------------------------------------------------------------------


Options: ReplyQuote
Re: Sybase_ct Problem
Posted by: CyberSpatium (71.237.217.---)
Date: November 17, 2006 03:29PM

to use sybase you will have to install the sybase database server yourself since WAMP just comes with mysql, and then and then enable the sybase extension in the php.ini file.




CyberSpatium
WAMP English Forum Admin

Options: ReplyQuote
Re: Sybase_ct Problem
Posted by: Alexnyc (---.us.socgen.com)
Date: October 11, 2007 01:13AM

Hi,

I have the same issue, but I don't really understand the answer.

What do you mean by "install the sybase database server yourself " ?

How do I do that ?

I know that the post is very old, but I don't find any answer to that question in the net.

I want to connect to a sybase database that already exist in another server.

Thanks for your help.

Alex

Options: ReplyQuote
Re: Sybase_ct Problem
Posted by: Alexnyc (---.us.socgen.com)
Date: October 15, 2007 04:25PM

Hi,

Any Help on this ?

Thanks

Alex

Options: ReplyQuote


Sorry, only registered users may post in this forum.