how to connect the php to sybase local system

January 11, 2011 at 06:26:34
Specs: Windows XP sp3
i have sybase installed in my system and i installed xampp external software for php and apache

and its working fine i tried by writing small echo program in php and i tried conecting to the local sybase by using the sybase_connect() function

but its showint the error like this

Fatal error: Call to undefined function sybase_pconnect() in C:\xampp\htdocs\rakesh\test.php on line 2

and the code is follows like this


<?php
$link = sybase_pconnect('JPN_HYD2','bnpja900dev', 'bnpja900devuser')
or die("Could not connect !");
echo "Connected successfully";
sybase_close($link);
?>


can any one help please


See More: how to connect the php to sybase local system

Report •


#1
January 11, 2011 at 06:27:53
i used this one as well

<?php
$link = sybase_connect('JPN_HYD2','bnpja900dev', 'bnpja900devuser')
or die("Could not connect !");
echo "Connected successfully";
sybase_close($link);
?>


Report •
Related Solutions


Ask Question