PDA

View Full Version : Sybase compilation problem


teedee
08-30-2004, 06:36 AM
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

<?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