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
PHP-Sybase Connectivity Issue.
Moderator: General Moderators
-
manojkumar.mahato
- Forum Newbie
- Posts: 1
- Joined: Wed Aug 13, 2008 8:05 am
-
nowaydown1
- Forum Contributor
- Posts: 169
- Joined: Sun Apr 27, 2008 1:22 am
Re: PHP-Sybase Connectivity Issue.
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?