Page 1 of 1

PHP-Sybase Connectivity Issue.

Posted: Wed Aug 13, 2008 8:14 am
by manojkumar.mahato
Hi All,

I am trying to connect PHP to MySQL/Sybase. Currently my working environment is PHP5 and Apache 2x under Windows XP. For Sybase, the DLL file, php_sybase_ct.dll and for MySQL, the DLL file, php_mysql.dll file is placed in the location C:\php\ext\. To operate the dlls, I have edited the php.ini file and added the extensions. However when I try to run the following code, I am getting error as 'HTTP 500 - Internal server error . The page cannot be displayed.'
For Sybase, the following code is used,
<?php
$connection = sybase_connect('DLM','sa','')
or die("Could not connect !");

if ($connection)
{
echo "Connection Successful";
exit;
}
?>

Any suggestions provided will be highly appreciated.
Thanks & Regards,
MKM

Re: PHP-Sybase Connectivity Issue.

Posted: Wed Aug 13, 2008 2:17 pm
by nowaydown1
I don't know very much at all about running PHP as a CGI, so this may or may not be helpful :) Is the display_errors directive enabled on your install? Have you tried looking at the error logs to see if it's logging anything?