Hi,
I have a client that wants to use sybase_connect. I have recompiled with sybase and now phpinfo shows
'--with-sybase-dir=/home/sybase' '--with-sybase-ct-dir=/home/sybase'
However with a simple test script just connecting to a database on another server there is error
Call to undefined function: sybase_connect() in home/username/domains/domain.com/public_html/sybase.php on line 11
The script used for testing is
Anyone have any ideas ?
Thanks
TeeDee
I have a client that wants to use sybase_connect. I have recompiled with sybase and now phpinfo shows
'--with-sybase-dir=/home/sybase' '--with-sybase-ct-dir=/home/sybase'
However with a simple test script just connecting to a database on another server there is error
Call to undefined function: sybase_connect() in home/username/domains/domain.com/public_html/sybase.php on line 11
The script used for testing is
PHP:
<?php
$dbserver = "111.222.333.444:1433";
$username = "username";
$password = "password";
$dsn = "stud";
$db_name = "SKP";
phpinfo();
var_dump(sybase_connect( $dbserver, $username, $password ));
if (!$conn = sybase_connect( $dbserver, $username, $password )) {
$errors[] = "Atsipraðome, ðiuo metu neámanoma prisijungti prie Duomenø Bazës. Praðom pabandyti vëliau.";
}
if (!sybase_select_db( $db_name, $conn )) {
$errors[] = "Klaida Duomenø Bazëje: neámanoma pasirinkti lentelës";
}
?>
Anyone have any ideas ?
Thanks
TeeDee