I have been looking into setting up PHP to connect to Sybase ASE Server. PHP is running on a Linux box (with Apache), Sybase is on a SUN box. I've been trying to locate decent documentation on using ct-lib to connect to a remote server, nothing I've found so far helps and I would GREATLY appreciate some detailed documentation, or links to said, if you can provide it. That said, I'm including the test source code below, it's simple enough that it should work if everything is setup properly:
The test is given below, it's very simple (just attempts a connection):
<?php
//
// This is the first test in PHP
//
echo "here 1";
$DbHost = "Test"; // The host where the MySQL server resides
$DbDatabase = "testDB"; // The database you are going to use
$DbUser = "test"; // Username
$DbPassword = "xxx"; // Password
$sybaseConnection = sybase_pconnect($DbHost, $DbUser, $DbPassword)
or die("$DbHost is not responding. Database access error. Please contact the site administrator.");
/*
sybase_select_db($DbDatabase, $sybaseConnection);
echo "here";
$sybaseConnection = sybase_close();
*/
?>
This code gives a 'Document contains no information' message.