473,729 Members | 2,243 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 2664
-----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/AwUBP8I8KIechKq OuFEgEQIdiACg3l/r69QwQ++Zqacppv irrb27JXMAn3+r
sce+uwPZhM5D41j R+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.goo gle.com...
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******@nospa m.com> wrote in message news:<vs******* *****@corp.supe rnews.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.goo gle.com...
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.sq l.*" %>
<body>
<h2>asdkjasdflk j</h2>
<jsp:setPropert y name="updateUse r" property="dsn" value="<%=
application.get RealPath("/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:;DRI VER=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(t his.driver);
Connection con;
con = DriverManager.g etConnection(th is.dsn);
Statement Stmt = con.createState ment();
Stmt.executeUpd ate("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
2398
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 the data. I would like to use a script language to control the interaction between these c++ objects. I become interested in Python since it can load C++ objects and can even extend C++ classes. However, I am not quite sure to what extent can...
4
1983
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` varchar(50) default NULL, `subject` varchar(255) default NULL,
3
6189
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 a Customer Table :
4
4067
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 workung with tables to achieve the results I want, I'm still baffled by how easy and good looking CSS-Layout can be, in code and the on screen results. I will surely never use tables again... But here's my problem: If you look at the site ...
7
3340
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 the same element. E.g. <A HREF="#" OnMouseOver="A(); return true" OnMouseOut"B(); return true;"
2
2508
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 structure supposes to have 2-3 levels. What's easier, to write a serialization method for each class used by the main class and a short method to gather all these XML strings together into one complex string or to use some trick and serialize the...
26
2721
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 to convert a latitude coord back to an accurate date time. Then I could detect the day/hour in the viewport when the timeline is zoomed in or out, or if it is moved. I cannot use the javascript date functions because this timeline will...
3
1311
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 (customer name or SSN and so on). I have a class that try to validate the data and is something is wrong it raises an error. That error is a class that I made,
2
1778
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
3273
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 about algorithms for C. It isn't easy to learn it though, and I have been trying to learn unix, linux, and C++ since day 1. Even when I first turned on a windows machine I fantasized about running my own unix server. Now I pay a good rate every...
0
8761
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9426
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
9280
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
9200
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
9142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4525
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...
1
3238
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
2
2677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.