Bluehost.com Web Hosting $6.95

how to use adodb with php/linux?

This is a discussion on how to use adodb with php/linux? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi, I discovered adodb and is use it now in order to connect from PHP to ms Access under Windows. ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2006
Bill
 
Posts: n/a
Default how to use adodb with php/linux?

Hi,

I discovered adodb and is use it now in order to connect from PHP to ms
Access under Windows. No problem.
Is this also applicable to PHP under linux, because i get a lot of errors
like:
include('../adodb/adodb.inc.php'); ---->"permission denied"
$conn = 'Provider=Microsoft.Jet.OLEDB.4.0;'. 'Data
Source=\\\\10.0.0.181\\db\\newres.mdb;';
$rs = NewADOConnection('ado_access'); ----> "unknown command"

Thanks
Bill


Reply With Quote
  #2 (permalink)  
Old 02-27-2006
Erwin Moller
 
Posts: n/a
Default Re: how to use adodb with php/linux?

Bill wrote:

> Hi,
>
> I discovered adodb and is use it now in order to connect from PHP to ms
> Access under Windows. No problem.
> Is this also applicable to PHP under linux, because i get a lot of errors
> like:
> include('../adodb/adodb.inc.php'); ---->"permission denied"


Hi,

That means that PHP cannot read the file.
Check the filepermissions so PHP can read it (and the subdirectories).


> $conn = 'Provider=Microsoft.Jet.OLEDB.4.0;'. 'Data
> Source=\\\\10.0.0.181\\db\\newres.mdb;';
> $rs = NewADOConnection('ado_access'); ----> "unknown command"


Read the Fine Manual:

http://www.phplens.com/adodb/supported.databases.html

Read the first lines in the table: access is not supported under *nix by
ADODB.

You'll have to find another solution:
1) Pick a database that runs under *nix, like Postgresql or mysql.
2) Try to connect to Access on a W$ machine from PHP on *nix using ODBC.
(So you need 2 machines)
3) Try to find some lib that support access on *nix directly, but I don't
know of any.
4) Maybe it is possible with windowboxes/emulations on *nix, like WINE or
OpenOfficeCrossover or something like that. I think that is overkill.

Good luck,

Regards,
Erwin Moller


>
> Thanks
> Bill


Reply With Quote
  #3 (permalink)  
Old 02-27-2006
Manuel Lemos
 
Posts: n/a
Default Re: how to use adodb with php/linux?

Hello,

on 02/27/2006 10:25 AM Bill said the following:
> Hi,
>
> I discovered adodb and is use it now in order to connect from PHP to ms
> Access under Windows. No problem.
> Is this also applicable to PHP under linux, because i get a lot of errors
> like:
> include('../adodb/adodb.inc.php'); ---->"permission denied"
> $conn = 'Provider=Microsoft.Jet.OLEDB.4.0;'. 'Data
> Source=\\\\10.0.0.181\\db\\newres.mdb;';
> $rs = NewADOConnection('ado_access'); ----> "unknown command"


I don't know with ADODB because I do not use it, but you can use
Metabase which is another database abstraction package that has a MS
Access driver that can be used to access your database in Linux or Windows:

http://www.phpclasses.org/metabase

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Reply With Quote
  #4 (permalink)  
Old 03-01-2006
Tim Roberts
 
Posts: n/a
Default Re: how to use adodb with php/linux?

"Bill" <ddd@ddd.ca> wrote:
>
>I discovered adodb and is use it now in order to connect from PHP to ms
>Access under Windows. No problem.
>Is this also applicable to PHP under linux, because i get a lot of errors
>like:
>include('../adodb/adodb.inc.php'); ---->"permission denied"
>$conn = 'Provider=Microsoft.Jet.OLEDB.4.0;'. 'Data
>Source=\\\\10.0.0.181\\db\\newres.mdb;';
>$rs = NewADOConnection('ado_access'); ----> "unknown command"


The Microsoft Jet engine, which reads Access database, runs ONLY on
Windows. ADOdb can read Mysql and Postgres databases (and some others),
but not Access.

As far as I know, there are no Linux modules that correctly manipulate
Access databases on Linux.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Reply With Quote
  #5 (permalink)  
Old 03-01-2006
J.O. Aho
 
Posts: n/a
Default Re: how to use adodb with php/linux?

Tim Roberts wrote:
> "Bill" <ddd@ddd.ca> wrote:
>> I discovered adodb and is use it now in order to connect from PHP to ms
>> Access under Windows. No problem.
>> Is this also applicable to PHP under linux, because i get a lot of errors
>> like:
>> include('../adodb/adodb.inc.php'); ---->"permission denied"
>> $conn = 'Provider=Microsoft.Jet.OLEDB.4.0;'. 'Data
>> Source=\\\\10.0.0.181\\db\\newres.mdb;';
>> $rs = NewADOConnection('ado_access'); ----> "unknown command"

>
> The Microsoft Jet engine, which reads Access database, runs ONLY on
> Windows. ADOdb can read Mysql and Postgres databases (and some others),
> but not Access.
>
> As far as I know, there are no Linux modules that correctly manipulate
> Access databases on Linux.


Best option would be to leave Access behind and migrate to say Mysql, here is
one page describing how and telling the authors opinion why too:

http://www.kitebird.com/articles/access-migrate.html


//Aho
Reply With Quote
  #6 (permalink)  
Old 03-01-2006
Geoff Muldoon
 
Posts: n/a
Default Re: how to use adodb with php/linux?

user@example.net says...

> > The Microsoft Jet engine, which reads Access database, runs ONLY on
> > Windows. ADOdb can read Mysql and Postgres databases (and some others),
> > but not Access.
> >
> > As far as I know, there are no Linux modules that correctly manipulate
> > Access databases on Linux.

>
> Best option would be to leave Access behind and migrate to say Mysql, here is
> one page describing how and telling the authors opinion why too:


Or the new free Oracle XE may now also be worth a look.

GM
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:43 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0