Skip to main content
July 8, 2010
Question

Connect to VFP Application or convert VFP into PHP??

  • July 8, 2010
  • 1 reply
  • 2714 views

Hi There

We have a fairly sophisticated database that's written in VFP for MySQL.

I'm building some insert/update pages for our customers to be able to insert and update records in the database, this is where it get's a little tricky. There is a program that handles certain business rules, and alos look's after assigning certain key's in a certain manner, to maintain database integrity.

Now, I can insert certain fields into certain tables with no poblems...however one part of the program is looking at a table field, reading it for use in the record, then incrementing it - however it's not a plain old auto-number, the VFP program itself is incrementing it, as it is a combination of numeric & alpha values...

so, would it be best to find some way of being able to connect to this program?

or

have the program converted so that the same procedures run on the database at the time of record insertion??

Thanks

Pete

I have the VFP if anyone would like to see it...

This topic has been closed for replies.

1 reply

Known Participant
July 8, 2010

VFP = Visual FoxPro?

July 8, 2010

Sorry Stephen...yes Visual Fox Pro...the database is MySQL


Known Participant
July 8, 2010

Yeah I thought that.

FoxPro is xbase. In other words, it it's own language. I don't know of any way to "convert" Fox code to PHP. Connecting to the tables is easy (in PHP), though.

I'd rewrite the program. Can you read the Fox code? Is the problem, that the code is encrypted?

As for connecting to the code.. that depends on the code. Fox itself is easy to connect to via COM, ADO, ODBC, etc, etc.