note 26610 added to function.odbc-connect

From: Date: Wed, 06 Nov 2002 16:36:34 +0000
Subject: note 26610 added to function.odbc-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-39052@lists.php.net to get a copy of this message
If you have problem to connect to sybase with an ODBC driver, try to set up your SYBASE environment variable to the correct directory. ([ODBC SQL Server driver]Allocation of a Sybase Open Client Context failed) Ex : Here is a connection to a DSN putenv("SYBASE=c:\sybase"); $conn = odbc_connect("DSN1","USER","PASSWORD"); echo "conn: $conn"; if ($conn <= 0) { echo "Error in connection"; exit; } else { echo "<P>Connection successful\n"; }; -- http://www.php.net/manual/en/function.odbc-connect.php http://master.php.net/manage/user-notes.php?action=edit+26610 http://master.php.net/manage/user-notes.php?action=delete+26610 http://master.php.net/manage/user-notes.php?action=reject+26610

« previous php.notes (#39052) next »