Skip to Content
0
Former Member
Jul 27, 2016 at 06:53 AM

How to define sybase_connect parameters in PHP to connect sybase DB with PASSWORD ENCRYPTION

397 Views

Hi,

I have a sybase_connect.php script in which I have defined the below parameters to connect Sybase DB which is 'password encrypted'.

<?php

sybase_min_client_severity(16);

sybase_min_server_severity(16);

$db = sybase_connect("Servername", "User", "Password");

if(!$db){

echo "Could not connect to DB !!!";

}

echo "Connected successfully";

?>

This is not at all working and I am getting an error "Warning: sybase_connect(): Sybase: Unable to connect". However I am success to connect the DBs' which is not set as 'Password encrypted'.


Any help in this would be appreciated.


Thanks,

Sumanta