Posted by:
remzi
(---.as01.esk1.superonline.com)
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 !"
;
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
----------------------------------------------------------------------------------