PHP-Sybase Connectivity Issue.

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
manojkumar.mahato
Forum Newbie
Posts: 1
Joined: Wed Aug 13, 2008 8:05 am

PHP-Sybase Connectivity Issue.

Post 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
nowaydown1
Forum Contributor
Posts: 169
Joined: Sun Apr 27, 2008 1:22 am

Re: PHP-Sybase Connectivity Issue.

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