Trading Systems Analyst (IL)
Next Step Systems
US-IL-Chicago

Justtechjobs.com Post A Job | Post A Resume

ODBC Socket Server
"System Administration: It's a dirty job, but someone said I had to do it"

Seen on a T-shirt
One of the most commonly faced dilemmas of system administrators is making dissimilar operating systems and tools work with each other. It is my hope that this article will make those system adminstrators' jobs a little easier when it comes to making Access and PHP work together.
If you want to use your Microsoft Access database with PHP you have a limited number of methods you can try. The most obvious one is to run PHP on Windows and use the ODBC functions. This is not an acceptable solution to many people because it forces you to use IIS and NT as your web server environment. For those preferring other operating systems, the most popular choice is an ODBC to ODBC bridge as sold by Openlink (http://www.openlinksw.com/) and easysoft (http://www.easysoft.com/). Both of these products come with a limited version that you can download and use for free. I wanted a open source alternative to these products and finally found what I was looking for in ODBCSocketServer (http://odbc.linuxave.net/). This tutorial will take you through configuring your machines and using the socket server.
In order to accomplish this task, you are going to need two machines. One machine will have the operating system of your choice, the web server of your choice and PHP on it. The other machine will have Windows, MS Access, and ODBC on it. The socketserver on the Windows machine will look for connections on a TCP/IP port, PHP will generate XML commands and send them to the socket server. The socket server will then execute the SQL statements in the commands and pass another XML document back to PHP. Finally, PHP will parse the XML document and manipulate the resulting recordset. Here is a simple diagram.
   MS-Access                                 Browser
      |                                         |
   ODBC/ADO                                 www server
      |                                         |
 socket server<------------------------------->PHP
                      XML Data
 Windows Machine                          Linux Machine
 
What is really interesting is that PHP does not need any database services compiled in only XML and the built in socket services are needed.
Ok, lets get started. I will be referring to the Linux machine as the client and the windows machine as the server for the rest of this document.
[ Next Page ]


Comments:
RE: How to connect Visual Foxpro with PHP?stuti04/14/07 06:32
ADO Error. Description: Description: [MicrosVygantas12/01/04 06:05
Return text fields with linefeed ?Michael Wandel12/01/04 02:54
RE: how do I set up php on IIS/Win200serverDownload the PHP Installer for Windows07/09/04 08:44
RE: Problems with queriesSarat03/17/04 09:34
New odbc Socket Server Information/ExampleRussell Jungwirth, Sureblue Studios10/10/03 12:49
RE: Defective in mission critical environmentIgnacio Estrada11/06/02 11:23
how do I set up php on IIS/Win200servergeorge10/22/02 10:26
Deinstall Odbc Socket Server?Jacques Garnier10/22/02 08:10
RE: ODBCSocketServer???John10/09/02 16:32
sessionmona09/26/02 14:14
An Alternative ImplementationHector Vergara R.09/18/02 16:50
RE: field names that have spacesJean-Pierre Gonthier09/13/02 18:35
Connect AS400 DB2 tables to MS SQL serverRam Madhavan09/13/02 12:56
RE: field names that have spacesdfee08/06/02 09:37
Defective in mission critical environmentAndrew Moyer08/05/02 10:24
RE: How to use PHP4 and Access 2000jane08/05/02 09:39
Latest ODBC Socket ServerRodrigo Tapia08/01/02 12:01
Special characterseDuke07/31/02 04:13
ODBC Socket Server/MSAccess - Network CaveatsAndrew Moyer07/01/02 13:57
socket jean06/26/02 10:09
PHP class for the socket serverJeremy Smith05/25/02 17:05
can s/one explainsara05/17/02 03:18
ODBC Socket ServerJuan05/07/02 00:07
Socket CallsJay Jung04/12/02 18:19
ADO error please help!CDEE03/27/02 21:30
Open Source Socket Server Updated LinkShannon Farrell03/20/02 09:27
How to connect Visual Foxpro?zhou03/12/02 23:43
how connect php to sapdb?lovesea03/12/02 03:58
ODBC and Access from *nixAndrew Hill02/26/02 10:49
ODBC general informationjordi tapias02/07/02 12:31
ODBC Router handles thisAugSoft01/21/02 10:49
Please Make An Article About PHP & AccessJoJo01/19/02 17:18
RE: How to connect IBM AS400 (IBM DB2) databaseTriple01/04/02 15:00
RE: How to connect IBM AS400 (IBM DB2) databaseHugo01/04/02 14:41
ODBC BtrieveTip12/15/01 09:41
Registry.reg file?Hau Phan12/11/01 16:12
testing SocketServerAllan Walker12/11/01 09:59
How to connect PHP to Access?Nick Joseph11/29/01 11:56
How to connect IBM AS400 (IBM DB2) databaseidiagung11/29/01 02:57
How to use PHP4 and Access 2000Naios KAE11/26/01 05:23
how to use zope on unix to connect odbcsoketpfty10/18/01 05:39
Amount of dataSommer Petr10/08/01 10:40
mysqlNorma Ramirez10/06/01 21:56
SocketServer does talk to DSN?Andrew Menner09/04/01 18:24
I can't get it to workAndres Mena09/04/01 06:38
compile ODBCSocketServerVisiK708/26/01 17:38
Problems parsing the XML resultsIgnacio Estrada07/27/01 08:58
Ingresnat06/24/01 12:23
ADO UPDATE ERRORMarcelo Rubele06/19/01 16:41
MS_SQLJens06/04/01 00:38
Problem with valuesWeston Dyer03/22/01 00:58
RE: Why IIS with ODBC+Access?David W. Fenton03/07/01 18:08
RE: Wot Crap !Mathew McKernan03/05/01 00:53
RE: Well and about Stored procedures ? vikas02/18/01 22:24
Problems with queriesMartin Roest02/09/01 08:10
field names that have spacesIvan Ossander01/30/01 06:53
RE: ODBCSocketServer???Gonzalo01/24/01 17:07
ODBCSocketServer???Partydewd01/18/01 17:00
Pb : Connection to Access Database from LinuxChris01/17/01 05:25
A Thousand Thanks...Jim01/03/01 10:09
RE: Having problem setting this up.Team FXML12/17/00 23:38
RE: Having problem setting this up.Tim Uckun12/15/00 22:17
RE: Having problem setting this up.Robert Baluyot12/14/00 21:26
RE: Having problem setting this up.Walt12/14/00 01:26
Having problem setting this up.Robert Baluyot12/13/00 20:24
RE: Why IIS with ODBC+Access?Malcontent12/12/00 23:15
RE: PerformanceMalcontent12/12/00 23:07
Well and about Stored procedures ? Alex12/12/00 19:11
Why IIS with ODBC+Access?Doc Sewell12/12/00 15:27
PerformanceSerge12/12/00 05:51
MS SQLRaditha Dissanayake12/12/00 04:44
Wot Crap !Phil Greenway12/12/00 01:39
Thank you for the recognitionTeam FXML12/08/00 23:28
Latest socketserverobj.php Tim Uckun12/07/00 16:07
XML as it should be usedTom Anderson12/07/00 11:17
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.