473,549 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can one call an Access database on computer using the IP address?


An old friend of mine recently approached me and said something like:
"I've a computer at my office that has an Access database running on
it. We've most of our company info in there. We'd like to put a portion
of it online as a dynamic site, but we don't want the database to leave
our office. Our office is connected to the Internet through a static
IP. Can you do it?"

I said no, but I also said I'd look into it. Could a PHP script running
on a web server make a call to that database to get info? How does that
work?

Jul 29 '05 #1
8 1821
lk******@geocit ies.com wrote:
An old friend of mine recently approached me and said something like:
"I've a computer at my office that has an Access database running on
it. We've most of our company info in there. We'd like to put a portion
of it online as a dynamic site, but we don't want the database to leave
our office. Our office is connected to the Internet through a static
IP. Can you do it?"

I said no, but I also said I'd look into it. Could a PHP script running
on a web server make a call to that database to get info? How does that
work?

This is possible using and ODBC connection. The process for setting up
the ODBC dsn for the remote database server depends on what the target
o.s is. From the php side, you may want to look at the ODBC function,
starting here:

http://www.php.net/manual-lookup.php...n=odbc&lang=en

Whether it is a good idea or not is a totally different question, and
depends on alot of variables.

Carl.
Jul 29 '05 #2
>An old friend of mine recently approached me and said something like:
"I've a computer at my office that has an Access database running on
it. We've most of our company info in there. We'd like to put a portion
of it online as a dynamic site, but we don't want the database to leave
our office.
Whoever laid down the rule "we don't want the database to leave our
office" is likely to be horrified by your proposal, unless, of
course, they thought up the idea of having the web site in the first
place. Be careful that you aren't fired just for thinking about
it.
Our office is connected to the Internet through a static
IP. Can you do it?"

I said no, but I also said I'd look into it. Could a PHP script running
on a web server make a call to that database to get info? How does that
work?


It looks like you need ODBC on both the PHP side and the server side.

Unless you have absolutely *NO* security (pretty horrifying thought
if you have "most of our company info" on there), you need to
instruct the server end to allow access from the web server.

Gordon L. Burditt
Jul 29 '05 #3
On 29 Jul 2005 12:03:13 -0700, lk******@geocit ies.com wrote:

An old friend of mine recently approached me and said something like:
"I've a computer at my office that has an Access database running on
it. We've most of our company info in there. We'd like to put a portion
of it online as a dynamic site, but we don't want the database to leave
our office. Our office is connected to the Internet through a static
IP. Can you do it?"

I said no, but I also said I'd look into it. Could a PHP script running
on a web server make a call to that database to get info? How does that
work?


To add to the other posts - yes, it can be done via ODBC - but there
are definite security risks.

1) Ensure your database is *outside* web space.
2) Use some sort of passwording/authentication.
3) Check that your scripts don't allow for SQL exploits, where
malicious users could wipe your data.
4) Keep *regular* backups of the database on another machine that is
not visible from outside.

If security isn't an issue, it's a fairly straightforward process -
though the precautions above are still worth implementing.

Adam.
Jul 29 '05 #4
NC
lk******@geocit ies.com wrote:

An old friend of mine recently approached me and said something like:
"I've a computer at my office that has an Access database running on
it. We've most of our company info in there. We'd like to put a portion
of it online as a dynamic site, but we don't want the database to leave
our office. Our office is connected to the Internet through a static
IP. Can you do it?"

I said no, but I also said I'd look into it. Could a PHP script running
on a web server make a call to that database to get info? How does that
work?


Sounds doable with ODBC, as other posters have noted already. Define
the Access DB as an ODBC source, have the server running PHP connect
via ODBC. Security would obviously be an issue, and, possibly, so
would performance. The way the task is defined right now, ASP may
end up delivering better performance compared to a non-Microsoft
solution such as PHP.

Now, if I were you, I would ask your friend a question: you are not
comfortable with the DB leaving the office, yet you are willing to
allow anyone with a browser to poke around it? You friend should
consider separating the office data from Web-accessible data.
The data still doesn't have to leave the office (Web-accessible
DB server can be kept on premises), but accidental corruption or
deliberate hack would only destroy the copy, not the master database.

Cheers,
NC

Jul 30 '05 #5
On 29 Jul 2005 20:11:16 -0700, NC wrote:
lk******@geoci ties.com wrote:

An old friend of mine recently approached me and said something like:
"I've a computer at my office that has an Access database running on
it. We've most of our company info in there. We'd like to put a portion
of it online as a dynamic site, but we don't want the database to leave
our office. Our office is connected to the Internet through a static
IP. Can you do it?"

I said no, but I also said I'd look into it. Could a PHP script running
on a web server make a call to that database to get info? How does that
work?


Sounds doable with ODBC, as other posters have noted already. Define
the Access DB as an ODBC source, have the server running PHP connect
via ODBC. Security would obviously be an issue, and, possibly, so
would performance. The way the task is defined right now, ASP may
end up delivering better performance compared to a non-Microsoft
solution such as PHP.


I haven't used ASP for a while, but I have created a few ODBC/PHP
sites. None of them have been *mega* busy sites and performance was
absolutely no problem.

I suspect that, as it will only be available to a select few <??> then
performance (with respect to concurrent users) wouldn't be much of a
problem. The only differences may occur if your d/b is *huge* - but
then carefully designed queries can still help.

Adam.
Jul 30 '05 #6
> You friend should
consider separating the office data from Web-accessible data.
The data still doesn't have to leave the office (Web-accessible
DB server can be kept on premises), but accidental corruption or
deliberate hack would only destroy the copy, not the master database.


That is good advice. I thought about doing a little PHP script that
would sit on the database machine in the office and every hour would
pull stuff out of the Access database and upload/input it to a MySql
database on the web. Then we could do straightforward PHP/MySql stuff
on the web and I'd feel like I was back on home turf (PHP/MySql being
more comfortable for me than Access).

Making a copy is a good, defensive idea, though I understand that as
soon as one starts making copies, the problem of keeping them
synchronized then becomes a pain.

Aug 5 '05 #7
>I haven't used ASP for a while, but I have created a few ODBC/PHP
sites. None of them have been *mega* busy sites and performance was
absolutely no problem.


It would be a low volume site, so performance would not be much of an
issue. It's mostly for dealers who have a commercial relationship with
the company. The site would be unlikely to get more than 100 visits a
day for at least the next 2 years.

When I go to www.php.net I notice that PHP has a large number of built
in functions for dealing with MS SQL Server but it doesn't seem to
have any for dealing with Access. Did I miss them?

Aug 5 '05 #8
NC
lk******@geocit ies.com wrote:

It would be a low volume site, so performance would not be much of an
issue. It's mostly for dealers who have a commercial relationship with
the company. The site would be unlikely to get more than 100 visits a
day for at least the next 2 years.
Which begs a question, how often should the site be updated if you
and your friend decide to run it on MySQL periodically updated from
Access? It seems to me that daily updates (rather than hourly ones
you mentioned as a possibility in another post) may work just fine.
You can program the update facility to run at night, when the load
on the Access system is minimal, if any.
When I go to www.php.net I notice that PHP has a large number of built
in functions for dealing with MS SQL Server but it doesn't seem to
have any for dealing with Access. Did I miss them?


Yes. The keyword is ODBC: http://www.php.net/ODBC

Cheers,
NC

Aug 6 '05 #9

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

Similar topics

63
5839
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy in Visual Studio to create reports and labels as it's in Access?` The advantage of VS.net is that not every user needs Access, right? And that...
7
2032
by: wrytat | last post by:
Hi! I'm very new to ASP.NET and really need some good advice from experts here. I'm creating a web application for my company now. This application has 2 parts. 1 part for the customers to access. The 2nd part is for our staff to access only. My director hopes to make the 2nd part to be something like an intranet, such that only our...
6
2866
by: Ishbel Kargar | last post by:
I've bought a new laptop (running Windows XP home edition) to replace my old one (running Windows 98). I don't have cable connection between the two computers, so I've transferred most of the files between the two using RW disk. I'm membership secretary for a charity (1300 members), with another smaller group (25 members), both using...
4
2378
by: Barry Young | last post by:
I have Access 2000 installed on a machine and I create the MDE just fine. When I copy the MDE file over to another machine that has Access 2000 installed, the references are hosed and I get unable to find function error. There are no third party controls in the application. This target machine is on a network requiring domain login, but the...
24
7631
by: Jazper | last post by:
hi i have this problem. i made a class deverted by CRootItem with implementation of IDisposable-Interface. i made a test-funktion to test my Dispose-Method.... but when set a breakpoint in my Dispose-Method and call the GC nothing happend!!! my Disposemethod has never been called!! so the GC dont call my Dispose-Method although I...
22
8870
by: Nuno Fonseca | last post by:
Anyone knows if it is possible to make a database connection over TCP/IP to an MS ACCESS database? If yes please give me an example or any documentation please. Best regards, Nuno
12
2102
by: dennist685 | last post by:
How to get an Access database on the web from my own computer I have an Access database project in inetpub/wwwroot/Access2 . I build it, and then press cntrl-F5. - I still get the development server - Version Information: ASP.NET Development Server 8.0.0.0, instead of IIS. This is a serious problem. How does one get an Access database...
17
4389
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting there, but is there a way they can find out if that application was put there from a CD or email or created at work? Hint: It's not on a client/server...
16
2484
by: Ben Sehara | last post by:
Is there any way I can limit the access to my website? I have a site "A" and I want to allow access to it only from site "B" login user. If someone try to access site "A" directory, I want it redirected to site "B" for login. After login at site "B", you see the link to site"A". When you click it, you see login page for site "A". Is it...
0
7521
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...
0
7720
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. ...
1
7473
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...
0
7810
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...
0
6044
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5088
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...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
764
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...

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.