RE: [PHP-DB] how connect a remote data base MSAccess with PHP in
| From: | Ruprecht Helms | Date: | Wed, 10 Apr 2002 09:22:00 +0000 |
| Subject: | RE: [PHP-DB] how connect a remote data base MSAccess with PHP in | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18375@lists.php.net to get a copy of this message | ||
Hi Silvia Mahiques,
> I have a question...
> I have a remote database in Microsoft Access on a WinNT System, and a Apache
> and PHP on Linux System. How can I connect this?
>
> There is one function in PHP for make this:
>
> odbc_connect(DSN,user,password)
>
> DSN (Data Source Name) in local host is the name of the DataBase, but in
> remote host, what I need do?
so you have to add the linuxhost in the DSN. In NT-Notation \\<server>\<path>.
I don't know how you write it in the odbc-function (you need to connect from
linux to your Access-Database on nt). Possible you need unixodbc as driver,
but I don't know exactly.
Regards,
Ruprecht
----------------------------------
E-Mail: Ruprecht Helms <rhelms@mayn.de>
Date: 10-Apr-02
Time: 11:12:57
to be informed -> http://www.rheyn.de <-
This message was sent by XFMail
----------------------------------