nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Connect Microsoft Access Database With PHP On Linux Server

This is a discussion on Connect Microsoft Access Database With PHP On Linux Server within the Databases servers forums, part of the Mastering Servers category; Hello, I want to know is it possible integrate access database with php in linux server. here with i have ...


Go Back   nixCraft Linux Forum > Mastering Servers > Databases servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-21-2008, 06:47 PM
Junior Member
User
 
Join Date: Nov 2007
My distro: RedHat Linux 4
Posts: 9
Rep Power: 0
ephdia is on a distinguished road
Arrow Connect Microsoft Access Database With PHP On Linux Server

Hello,
I want to know is it possible integrate access database with php in linux server.
here with i have attached my requirement:
- A Linux server configured to run Apache/PHP
- The same server has a directory in which an Access database is stored. (This directory is samba-mounted and used from Windows client
- I want a PHP page created that accesses this Access database. May be just read a table and show on the page.

Your thoughts will be greatly appreciated...Thanks in advance...

Thanks,
ephdia.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-21-2008, 08:38 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 910
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Yes it is possible, you need to use ODBC under UNIX / Linux see following urls for more info. From php.net:

Quote:
Yes. You already have all the tools you need if you are running entirely under Windows 9x/Me, or NT/2000, where you can use ODBC and Microsoft's ODBC drivers for Microsoft Access databases.


If you are running PHP on a Unix box and want to talk to MS Access on a Windows box you will need Unix ODBC drivers. » OpenLink Software has Unix-based ODBC drivers that can do this.
Another alternative is to use an SQL server that has Windows ODBC drivers and use that to store the data, which you can then access from Microsoft Access (using ODBC) and PHP (using the built in driver, or to use an intermediary file format that Access and PHP both understand, such as flat files or dBase databases. On this point Tim Hayes from OpenLink software writes:
unixODBC
PHP: Database issues - Manual

Under Windows you can use Apache+php along with ODBC provided by Windows itself.
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 05-22-2008, 11:48 AM
Junior Member
User
 
Join Date: Nov 2007
My distro: RedHat Linux 4
Posts: 9
Rep Power: 0
ephdia is on a distinguished road
Arrow

Thanks a lot for your reply... But i am getting "Warning: odbc_exec() [function.odbc-exec]: SQL error: [unixODBC]Couldn't parse SQL , SQL state 08001 in SQLExecDirect in /home/xxx/access.php on line 42

any idea about this error...
Reply With Quote
  #4 (permalink)  
Old 05-22-2008, 04:05 PM
Junior Member
User
 
Join Date: Nov 2007
My distro: RedHat Linux 4
Posts: 9
Rep Power: 0
ephdia is on a distinguished road
Arrow got only read access over MS-Access

Hi,
I have followed this link bryanmills.net » Blog Archive » Microsoft Access Database using Linux and PHP
and integrated MS-Access with php on linux server.Now i can read the MS-Access database but couldn't edit or modify that.
Is that any more driver have to install for getting full access on MS-Access database?

Thanks,
ephdia
Reply With Quote
  #5 (permalink)  
Old 07-12-2008, 12:13 PM
Junior Member
User
 
Join Date: Jul 2008
Location: Washington, US
My distro: CentOS, Ubuntu
Posts: 6
Rep Power: 0
memnoch_proxy is on a distinguished road
Default

My days of developing Cold Fusion + MS Access lead me to a deep distrust of MS Access as a web back-end even for a few users. Please consider reversing role on MS Access: make it the client for a mysql database and then as your application gets popular, you'll scale safely, and the Access users will still have a familiar interface for managing their data.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Remote access to linux server RamPD Linux software 9 05-26-2008 07:21 AM
How to connect the Mail Server running on Guest OS of VMWare satimis Mail Servers 5 01-29-2008 03:36 PM
Very urgent --How to access the database informix ? jkmb All about FreeBSD/OpenBSD/NetBSD 0 01-22-2008 03:00 PM
PPTP connect vpn Linux server raj Networking, Firewalls and Security 0 07-29-2007 05:29 AM
how to enable microsoft outlook in squid kamran96102 Networking, Firewalls and Security 10 02-23-2007 08:37 PM


All times are GMT +5.5. The time now is 05:11 PM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36