473,513 Members | 2,506 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Complicated web-Access question

I have several Access databases that I want to publish (or make
available) through our web-pages. The problem...our web server is on
a Linux-Apache machine while our Access db is obviously on a Windows
(2000) machine...all on the same network.

Short of rebuilding my databse on MySQL/etc is there any way to
"point" a PHP web application through the Linux webserver to the
Access db on the Windows box?
Nov 12 '05 #1
4 2647
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Use the SAMBA networking s/w to cross the Linux/MS barrier.

I know you can make client/server programs using Perl sockets & you
can open an Access db using the Perl DBI (see the O'Reilly book
_Programming the Perl DBI_ for info).

MGFoster:::mgf
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBP8I8KIechKqOuFEgEQIdiACg3l/r69QwQ++Zqacppvirrb27JXMAn3+r
sce+uwPZhM5D41jR+8EM9wqw
=CS3x
-----END PGP SIGNATURE-----

SJ Mo2 wrote:
I have several Access databases that I want to publish (or make
available) through our web-pages. The problem...our web server is on
a Linux-Apache machine while our Access db is obviously on a Windows
(2000) machine...all on the same network.

Short of rebuilding my databse on MySQL/etc is there any way to
"point" a PHP web application through the Linux webserver to the
Access db on the Windows box?


Nov 12 '05 #2
DFS
I think you can use the Java JDBC-ODBC bridge driver to read/edit an Access
db from Java code
"SJ Mo2" <sj***@hotmail.com> wrote in message
news:ed**************************@posting.google.c om...
I have several Access databases that I want to publish (or make
available) through our web-pages. The problem...our web server is on
a Linux-Apache machine while our Access db is obviously on a Windows
(2000) machine...all on the same network.

Short of rebuilding my databse on MySQL/etc is there any way to
"point" a PHP web application through the Linux webserver to the
Access db on the Windows box?

Nov 12 '05 #3
Hi,

merging your DB to MySQL on linux would definitely be the easiest way.
However,
you can interface your linux box quite easily with the serverside .mdb
datasets. There is the possibility to setup an odbc/odbc bridge. You
can interface an odbc with a native MS Access DSN on the serverside,
then talking to the very same bridge with a clientside odbc from
linux. You can find the
required components at http://www.openlinksw.com (Mulit-Tier Driver
Suite).

Feel free to post any further questions you might have.

Kind Regards,
Jan
"DFS" <no******@nospam.com> wrote in message news:<vs************@corp.supernews.com>...
I think you can use the Java JDBC-ODBC bridge driver to read/edit an Access
db from Java code
"SJ Mo2" <sj***@hotmail.com> wrote in message
news:ed**************************@posting.google.c om...
I have several Access databases that I want to publish (or make
available) through our web-pages. The problem...our web server is on
a Linux-Apache machine while our Access db is obviously on a Windows
(2000) machine...all on the same network.

Short of rebuilding my databse on MySQL/etc is there any way to
"point" a PHP web application through the Linux webserver to the
Access db on the Windows box?

Nov 12 '05 #4
Interestingly, Java interfaces just fine with Access. Here is a sample
JSP which calls a Java Bean that uses Access:

<html>
<head>
<title>Insert Records</title>
</head>
<%@ page import="java.sql.*" %>
<body>
<h2>asdkjasdflkj</h2>
<jsp:setProperty name="updateUser" property="dsn" value="<%=
application.getRealPath("/mydb.mdb") %>" />
<br>
</body>
</html>

package project2; //java bean

import java.util.*;
import java.net.*;
import java.io.*;
import java.sql.*;

public class SqlBean2 implements Serializable
{
private String dsn = "jdbc:odbc:;DRIVER=Microsoft Access Driver
(*.mdb);DBQ=";
private String driver = "sun.jdbc.odbc.JdbcOdbcDriver";

public void setDsn(String dsn){this.dsn = this.dsn + dsn;}

public String AddRec()
{
try
{
Class.forName(this.driver);
Connection con;
con = DriverManager.getConnection(this.dsn);
Statement Stmt = con.createStatement();
Stmt.executeUpdate("Insert Into tblmydb(Name) Values('Bill')");
con.close();
}
catch(Exception e){return "ERROR: " + e;}
return "";
}
}

I could get into this more, but hey, it's an Access NG :). Just giving
you an idea how you could use Access with Apache Tomcat or Resin. Note:
this sample doesn't display anything on the webpage, just adds a record
to an Access mdb from a jsp webpage. But you get the idea.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #5

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

Similar topics

7
2376
by: Bo Peng | last post by:
Dear Python group: I am planning on an application that involves several complicated C++ classes. Basically, there will be one or two big data objects and some "action" objects that can act on...
4
1969
by: John Pedersen | last post by:
Hi, I have this table: CREATE TABLE `messages` ( `messageID` int(11) unsigned NOT NULL auto_increment, `threadID` int(11) unsigned, `fromUserName` varchar(50) default NULL, `toUserName`...
3
6166
by: Chris | last post by:
Hello all- Fairly new to SQL and I need to issue a pretty complex query (complex being a relative term here :) ). To dumb down my example for display purposes, I have two tables in my schema...
4
4055
by: Tom Schmitt | last post by:
I tried getting a complicated, multi-column box design on it's way on my web-site and it works out fine on the IE6. Because I'm a relative beginner to all stuff related to CSS and am used to...
7
3318
by: windandwaves | last post by:
Hi Gurus I am trying to make this rather complicated maps with an a huge number of mouseovers and the like. I want to set up a function that OnMouseDown swaps the OnMouseOver and OnMouseOut for...
2
2498
by: Just D | last post by:
Hi, I need to write a serialization (to XML string) and restoring (from XML string) of a very complicated object. The object uses a few classes, one class has two ArrayLists, etc. The general...
26
2678
by: jshanman | last post by:
I am writing a timeline that uses Google Maps. I have a function that converts a date time to latitude coords. This function is used to draw the markers on the timeline. I need a reverse function...
3
1302
by: Henrry Pires | last post by:
Hello to all. I have and strange and complicated problem. My asp.net application raise errors when the data that the user input is invalid. For example: The user didn't fill all some data...
2
1772
by: fAnSKyer/C# newbie | last post by:
I want use C# or even C++, C to do some complicated math works, like calculaus~~ I wander if C# provide any complicated math package, like MATLAB Thanks a lot Cheers fAnS
11
3252
by: CoreyWhite | last post by:
So I'm reading books about perl, which may not be quite as powerful as C++ but at least has more power than C & is very easy to learn from the manuals. I'm also buying books on C++, and books...
0
7260
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,...
0
7162
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7539
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...
1
7101
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...
0
5686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4746
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...
0
3223
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1597
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 ...
0
456
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...

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.