Am Mittwoch, den 24.01.2007, 12:15 +0100 schrieb Godin Vincent:
> Hi,
> 
> I am desperately looking for a script or a some clues to convert  dbf file
> to mysql table
> 
> I have already made some stuff in php, which works great for dbf file
> version >=3
> but unfortunately the versions of my dbf files are different : some <3 and
> some >=3
> 
> The dbase functions in php package are for dbf file version >=3 :(
> 
> So, I need to convert some files before "translating" them.
> 
> Maybe I could translate my dbf file in cvs and then import it in my mysql
> table already made ?
> 
> But how can I convert it in cvs ? :(

I think you are talking about CSV here:

CSV: comma separated values
CVS: concurrent versions system


> Or, Do you have others ideas ?
> P.S. : the script must be automatic !! & it might be run on a unix station

1. Take a scripting language of your choice (traditional: perl, modern:
python, ...).

2. Look for tools already written to perform this task:
http://dbf.berlios.de/

"dbf is an easy-to-use command line tool to show and convert the content of
dBASE III, IV, and 5.0 files. It reads dBASE databases and prints the content
to the screen or converts it to comma-separated (*.csv) files which can be
opened in Excel, StarOffice, and most other spread sheets. It can also be
used to show some statistics about the content."

HTH,
Marc


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to