Question:

PHP+remote ODBC server connection?

by  |  earlier

0 LIKES UnLike

I'm new to messing with ODBC. I'm trying to write a php script on my linux box that connects to an ODBC driver on my windows box. I really don't know c**p about ODBC, but all I'm looking for is an example of a way to connect to a remote server. I can figure the rest out from there, google has been no help.

Thanks

 Tags:

   Report

2 ANSWERS


  1. You'll need an ODBC bridge from linux to windows.  You can buy a commerical bridge ($~1,500) I think EasySoft sells such bridges.  You can also use dbtcp for a free alternative.  

    Here's the directions for installing dbtcp on Suse

    http://www.joshuaostrom.com/2007/11/07/d...


  2. googling anything relating to php is not as useful as just checking out php.net

    resource odbc_connect  ( string $dsn  , string $user  , string $password  [, int $cursor_type  ] )

    you should always check out php.net when trying to do something.

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.