From lvl at omnitec.net Tue Dec 13 15:56:27 2016 From: lvl at omnitec.net (L. V. Lammert) Date: Tue, 13 Dec 2016 14:56:27 -0600 (CST) Subject: [GRLUG] LAMP [PHP] -> ODBC Message-ID: Trying to rebuild an ancient PHP server installation that uses an ODBC connection to a Windoze box, .. the current solution is dbctp (a la 1987), which hangs on a regular basis and must be restarted. Looking at switching to unixODBC (package install, great, current even), .. but the DB is actually VisualFoxPro and the ODBC driver will not install on the dev srv 2008 box. VFP seems to have switched to OLE DB some years ago, but that won't provide an ODBC connection. Has anyone dealt with an architecture like this? Thanks! Lee From justin.denick at gmail.com Tue Dec 13 16:00:06 2016 From: justin.denick at gmail.com (Justin Denick) Date: Tue, 13 Dec 2016 16:00:06 -0500 Subject: [GRLUG] LAMP [PHP] -> ODBC In-Reply-To: References: Message-ID: I worked on a FoxPro thing which actually stored data in DBF format. I used a perl script to dump it out. http://search.cpan.org/~janpaz/DBD-XBase-1.03/bin/dbfdump.PL dunno if this will help, but it did the trick for what I needed. > On Dec 13, 2016, at 3:56 PM, L. V. Lammert wrote: > > Trying to rebuild an ancient PHP server installation that uses an ODBC > connection to a Windoze box, .. the current solution is dbctp (a la 1987), > which hangs on a regular basis and must be restarted. > > Looking at switching to unixODBC (package install, great, current even), > .. but the DB is actually VisualFoxPro and the ODBC driver will not > install on the dev srv 2008 box. > > VFP seems to have switched to OLE DB some years ago, but that won't > provide an ODBC connection. > > Has anyone dealt with an architecture like this? > > Thanks! > > Lee > _______________________________________________ > grlug mailing list > grlug at grlug.org > http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug -------------- next part -------------- An HTML attachment was scrubbed... URL: From brousch at gmail.com Tue Dec 13 16:01:52 2016 From: brousch at gmail.com (Ben Rousch) Date: Tue, 13 Dec 2016 16:01:52 -0500 Subject: [GRLUG] LAMP [PHP] -> ODBC In-Reply-To: References: Message-ID: Way back in the day I used MS Access 97 as a bridge between FoxPro and ODBC. I mapped all of the tables from FoxPro into Access, then used ODBC to access Access. On Tue, Dec 13, 2016 at 4:00 PM, Justin Denick wrote: > I worked on a FoxPro thing which actually stored data in DBF format. I > used a perl script to dump it out. > http://search.cpan.org/~janpaz/DBD-XBase-1.03/bin/dbfdump.PL > dunno if this will help, but it did the trick for what I needed. > > > > > > On Dec 13, 2016, at 3:56 PM, L. V. Lammert wrote: > > Trying to rebuild an ancient PHP server installation that uses an ODBC > connection to a Windoze box, .. the current solution is dbctp (a la 1987), > which hangs on a regular basis and must be restarted. > > Looking at switching to unixODBC (package install, great, current even), > .. but the DB is actually VisualFoxPro and the ODBC driver will not > install on the dev srv 2008 box. > > VFP seems to have switched to OLE DB some years ago, but that won't > provide an ODBC connection. > > Has anyone dealt with an architecture like this? > > Thanks! > > Lee > _______________________________________________ > grlug mailing list > grlug at grlug.org > http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug > > > > _______________________________________________ > grlug mailing list > grlug at grlug.org > http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug > -- Ben Rousch brousch at gmail.com http://clusterbleep.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From megadave at gmail.com Wed Dec 14 02:59:58 2016 From: megadave at gmail.com (Dave Chiodo) Date: Wed, 14 Dec 2016 02:59:58 -0500 Subject: [GRLUG] LAMP [PHP] -> ODBC In-Reply-To: References: Message-ID: Have you considered migrating both the application AND the database to modern platforms, which would eliminate the need for the ODBC jury-rig completely? PHP & mysql?PHP/Mysql? On Tue, Dec 13, 2016 at 3:56 PM, L. V. Lammert wrote: > Trying to rebuild an ancient PHP server installation that uses an ODBC > connection to a Windoze box, .. the current solution is dbctp (a la 1987), > which hangs on a regular basis and must be restarted. > > Looking at switching to unixODBC (package install, great, current even), > .. but the DB is actually VisualFoxPro and the ODBC driver will not > install on the dev srv 2008 box. > > VFP seems to have switched to OLE DB some years ago, but that won't > provide an ODBC connection. > > Has anyone dealt with an architecture like this? > > Thanks! > > Lee > _______________________________________________ > grlug mailing list > grlug at grlug.org > http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug -------------- next part -------------- An HTML attachment was scrubbed... URL: From awilliam at whitemice.org Wed Dec 14 06:23:57 2016 From: awilliam at whitemice.org (Adam Tauno Williams) Date: Wed, 14 Dec 2016 06:23:57 -0500 Subject: [GRLUG] LAMP [PHP] -> ODBC In-Reply-To: References: Message-ID: <1481714637.7367.1.camel@whitemice.org> On Tue, 2016-12-13 at 14:56 -0600, L. V. Lammert wrote: > Trying to rebuild an ancient PHP server installation that uses an > ODBC connection to a Windoze box, .. the current solution is dbctp (a > la 1987), which hangs on a regular basis and must be restarted. A PostgreSQL instance on a Windows box using the Windows ODBC driver via Foreign Data Wrappers . A database engine supporting SQL/MED can solve a lot of data access issues. -- Adam Tauno Williams GPG D95ED383 Systems Administrator, Python Developer, LPI / NCLA