473,699 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php odbc support for ms access

We have a webserver, Apache, hosted on Linux and we use php as the
scripting language. Now, I am developing a form which will fill up a
Microsoft Access database (on a Windows machine). For this one needs to
use an ODBC connection. Now php has default ODBC support
(http://us2.php.net/odbc ), but I do not think this supports MS Access.

My question is what driver manager/drivers do i need to install for
this:
one option was unixODBC, but we do not want to do this as this involves
rebuilding php.

Will iODBC work? or will the default support work is my doubt.

It would be great if someone can help me with this.

Harsha

Nov 2 '06 #1
3 2213
ha************* **@gmail.com wrote:
We have a webserver, Apache, hosted on Linux and we use php as the
scripting language. Now, I am developing a form which will fill up a
Microsoft Access database (on a Windows machine). For this one needs to
use an ODBC connection. Now php has default ODBC support
(http://us2.php.net/odbc ), but I do not think this supports MS Access.

My question is what driver manager/drivers do i need to install for
this:
one option was unixODBC, but we do not want to do this as this involves
rebuilding php.

Will iODBC work? or will the default support work is my doubt.

It would be great if someone can help me with this.

Harsha
Hi Harsha,

I am not sure, but ADODB can maybe help you.
www.phplens.com/adodb
I use that package with great happiness now for years. :-)
It is a database abstractionlaye r that let you connect to many databases via
a common API.

There are some threadsafety issues with IIS however, but you use apache.

I never tried to connect to access, so you'll have to figure it out
yourself. :-)

Regards,
Erwin Moller
Nov 2 '06 #2
ODBC is more like a framework. You need the separate drivers for the
databases you want to access. Now, on your windows machine, ODBC will
probably work, as both ODBC and the Jet-ODBC driver were installed with
MS-Access (Access uses the "Jet" engine to access his database). The
machine accessing the database should have the driver installed. So the
Linux server should have an ODBC driver for MS-Access. I don't know if
one exists for Linux.

Best regards

ha************* **@gmail.com wrote:
We have a webserver, Apache, hosted on Linux and we use php as the
scripting language. Now, I am developing a form which will fill up a
Microsoft Access database (on a Windows machine). For this one needs to
use an ODBC connection. Now php has default ODBC support
(http://us2.php.net/odbc ), but I do not think this supports MS Access.

My question is what driver manager/drivers do i need to install for
this:
one option was unixODBC, but we do not want to do this as this involves
rebuilding php.

Will iODBC work? or will the default support work is my doubt.

It would be great if someone can help me with this.

Harsha
Nov 2 '06 #3
Thanks for the answers guys! Now I know that I need a driver on the
Unix machine which hosts my website. So obdc support in php and obdc
driver are two different things right?

Erwin...I checked the adodb website and it supports and it supports
access but only in Windows (
http://www.phplens.com/adodb/supported.databases.html ). Hopefully I
can find soemthing else.

Thanks,
Harsha.
Erwin Moller wrote:
ha************* **@gmail.com wrote:
We have a webserver, Apache, hosted on Linux and we use php as the
scripting language. Now, I am developing a form which will fill up a
Microsoft Access database (on a Windows machine). For this one needs to
use an ODBC connection. Now php has default ODBC support
(http://us2.php.net/odbc ), but I do not think this supports MS Access.

My question is what driver manager/drivers do i need to install for
this:
one option was unixODBC, but we do not want to do this as this involves
rebuilding php.

Will iODBC work? or will the default support work is my doubt.

It would be great if someone can help me with this.

Harsha

Hi Harsha,

I am not sure, but ADODB can maybe help you.
www.phplens.com/adodb
I use that package with great happiness now for years. :-)
It is a database abstractionlaye r that let you connect to many databases via
a common API.

There are some threadsafety issues with IIS however, but you use apache.

I never tried to connect to access, so you'll have to figure it out
yourself. :-)

Regards,
Erwin Moller
Nov 3 '06 #4

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

Similar topics

3
1837
by: Joe | last post by:
Python 2.4 Windows XP SP2 MS Access 2000 mx.ODBC 2.0.7 Problem data truncation occuring (here's the actual error message): mxODBC.Warning: ('01004', 5, ' String data, right truncated on column number 3 (Expr1002)', 3326)
6
6771
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used the SQL Profile to watch the T-SQL-Command which Access ( who creates the commands?) creates and noticed:
2
9975
by: J. Marshall Latham | last post by:
I have a simple page trying to enter three pieces of information into a database using ODBC on a web site that has .NET Framework 1.0, so I have to use this Microsoft.Data.Odbc.dll which has been working just fine on another web server. Well the web server/web site that I am having trouble with is receiving the following error. Can anyone help me with this? Thanks. JML Access is denied: 'Microsoft.Data.Odbc'. Description: An...
4
10810
by: Jacob Pallapati | last post by:
Hi, I need to create an ODBC connection for one of my databases from the command line. I could use db2 catalog system odbc database source <my-database>. But I want to create a DSN with a name different from the name of the database. For instance if my database name is SAMPLE i want to create a dsn with name sample_database. Please let me know if there is a way to do this from the command line. As far as I can see db2 catalog command...
14
10131
by: Abhi | last post by:
FYI: This message is for the benefit of MS Access Community. I found that this prblem has been encounterd by many but there is hardly any place where a complete solution is posted. So I thought I should give back to the community by posting our findings. Thanks you all for all your help till now by posting problems and their solutions. ~Abhijit
10
2763
by: Wolfgang Kaml | last post by:
Hello All, I have been working on this for almost a week now and I haven't anything up my sleeves anymore that I could test in addition or change.... Since I am not sure, if this is a Windows 2003 Server or ADO or ODBC issue, I am posting this on all of the three newsgroups. That's the setup: Windows 2003 Server with IIS and ASP.NET actiavted Access 2002 mdb file (and yes, proper rights are set on TMP paths and path,
9
2470
by: Jacques Lebastard | last post by:
I have a problem writing PHP ODBC scripts that suit both MySQL and PostgreSQL. So far, the following syntaxes seem to apply to each database (this is an 'insert' example; the same differences apply to 'select commands): MySQL: INSERT INTO MyTable (col1, col2) VALUES ("value1","value2") PGSQL: INSERT INTO "MyTable" (col1, col2) VALUES ('value1','value2') I'd like to have a single syntax for both databases. Is this possible? Do I need...
7
5565
by: BillCo | last post by:
I need to Connect to an online mySQL database from Access using JET ODBC with no saved DSN. Anyone out there who as made this work and can give example of how it's done? I've seen lots of posts saying it's possible, but no code. This has to be Jet ODBC, because the users are technophobes and I wouldnt expect them to download and install a myODBC driver - or create a working DSN for that matter. My visiting the sites and configuring...
7
3058
by: Salad | last post by:
I am converting an application from A97 to A2003. I have 2 tables created by another application as a Foxpro.dbf. The table has no index. The connect string in A97 is FoxPro 2.0;HDR=NO;IMEX=2;DATABASE=C:\Test It's really easy to connect to those tables in A97. I'm having difficulties in A2003. I'm trying to follow the instructions in http://support.microsoft.com/kb/824264/.
0
8689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9178
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9035
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8916
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4376
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3058
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.