tags:

views:

111

answers:

2

I strongly prefer not to use additional 3rd party components, libraries or DLLs (at least in v1.0), unless there is absolutely no other solution.

Question: (how) can I use Delphi to progrtiamatically crate a BDE database and write to it, then use PHP to read from it?

Any URLs for examples of tutorial?


People are advising against it. Ok, the ultimate goal is some form of ODBC interface anyway. Someone mentioned ADO to me, but I don't see how to install it.

I need to crate the entire database and contents programatically in Delphi - at run time - I have no idea of it's contents or even name at compile time.

What's the simplest route for me? Thanks

+2  A: 

Sounds like a bad idea to me, to be honest. BDE is long-since deprecated and I seriously doubt if you could get PHP to jive with it.

I would recommend using a standard database such as Firebird or MySQL for which established Delphi and PHP libraries exist, or XML if the dataset is not too large.

Alan Clark
+1  A: 

By BDE you mean Paradox or DBase? Wouldn't recomment using those anymore. I moved into Firebird and MySQL years ago just like Alan recommends.

Delphi supports Firebird/Interbase database out of the box AFAIK and PHP libraries exist for it. Other way around : MySQL support is in all PHP installations and there are some very good components for Delphi

Riho
"Delphi supports Firebird/Interbase database out of the box AFAIK" - I'm still stuck with Delphi 7 :-(
Mawg
+ 1 "there are some very good components for Delphi" - can you name some?
Mawg
http://www.devart.com/mydac/
Riho
IBObjects for Firebird
Riho
MyDac looks good, so +1, but unfortunately it isn't ODBC and I can't guarantee to always use MySql. Thanks for the comment, though
Mawg