nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Databases servers Discussions of databases of all types - especially MySQL.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 21-05-2008, 06:47 PM
Junior Member
User
 
Join Date: Nov 2007
OS: RedHat Linux 4
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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 clients)
- 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
  #2 (permalink)  
Old 21-05-2008, 08:38 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
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 drivers), 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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 22-05-2008, 11:48 AM
Junior Member
User
 
Join Date: Nov 2007
OS: RedHat Linux 4
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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 22-05-2008, 04:05 PM
Junior Member
User
 
Join Date: Nov 2007
OS: RedHat Linux 4
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
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 12-07-2008, 12:13 PM
Junior Member
User
 
Join Date: Jul 2008
Location: Washington, US
OS: CentOS, Ubuntu
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
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


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 01:33 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38