473,387 Members | 1,903 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Feb 27 '06 #1
5 12961
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


Feb 27 '06 #2
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/
Feb 27 '06 #3
"Bill" <dd*@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, ti**@probo.com
Providenza & Boekelheide, Inc.
Mar 1 '06 #4
Tim Roberts wrote:
"Bill" <dd*@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
Mar 1 '06 #5
us**@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
Mar 1 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Google Mike | last post by:
After a lot of thought and research, and playing with FreeTDS and InlineTDS, as well as various ODBC connections, I have determined that the fastest and cheapest way to get up and going with PHP on...
2
by: Gustavo Rahal | last post by:
Hi How can I access a MS-Access DB from a linux machine? I am doing a website that will be hosted on Linux and has to access a Windows machine with the MS-Access DB. I read about the PythonWin...
4
by: KLomax | last post by:
I have a VB6 com object that uses ADO 2.1 for data access. I have referenced this object in a aspx application. It works fine on my local development machine. On our staging server, it errors when...
0
by: elcc1958 | last post by:
I need to support a VB6 application that will be receiving disconnected ADODB.Recordset from out DotNet solution. Our dotnet solution deals with System.Data.DataTable. I need to populate a...
0
by: Channing Jones | last post by:
Hello everyone, I am trying to store data in a binary field of an SQL-Server table using ADODB. So far, I have managed to store a record but not any data in the binary field. I only get...
0
by: Andre Azevedo | last post by:
Hi all ! I've created a .net serviced component with only one method. This method receive an ADODB.Command object and execute it. The ADODB.Command object is created in the client process. (VB...
6
by: Wonder | last post by:
We have a VB.NET project with a reference to ADO 2.5 When I open it on my machine, I get the following build error: "The referenced component 'ADODB' has an updated custom wrapper available." ...
7
by: trpost | last post by:
I just started using the php adodb library for my Oracle transactions, but am running into a problem when there are 2 simultaneous requests going on at the same time. The nature of the php app...
0
by: lulazz | last post by:
Hi, I would like to connect to an informix DB using adodb. At the moment I connect through odbc under window, but I would like to be able to connect under linux as well. Also do I need any...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.