I am trying to connect to Sybase backend using PHP. However, when I run:
<?php
if (function_exists(sybase_connect)) {
echo "Exists";
}
else {
echo "Does not exist";
}
?>
it prints “Does not exist.” This is on Unix and Sybase is mounted there. What do I need in order to be able to use sybase_connect()?
Thanks!
While you pass the function name as a string, if it doesn’t exist, possibly sybase support is not installed on your server. If you’re on Linux (Debian or Ubuntu, for exammple), you’ll need to install package php5-sybase (google it).