Reply
important need for a windows client
Old 03-26-2008, 07:25 PM important need for a windows client
cwboaze's Avatar
Novice Talker

Posts: 10
Name: Chris Boaze
Location: Online - Virginia
hi all,

does anyone know of a method or way to convert a .sql file or .csv file into dbase for foxpro in php written converts.

I can write code to convert to about anything, but not what he needs, lol.

Thanks, In advance!
__________________
-------------
Thanks, CB-The-One
http://www.webdevelopmenttechnology.com
cwboaze is offline
Reply With Quote
View Public Profile Visit cwboaze's homepage!
 
When You Register, These Ads Go Away!
Old 03-27-2008, 01:08 AM Re: important need for a windows client
mtishetsky's Avatar
King Spam Talker

Posts: 1,044
Name: Mike
Location: Mataro, Spain
Describe the task. I am totally sure that you do not need to "convert .sql file". Maybe you need to export data from mysql to dbase? Why don't you simply select the data from mysql and insert it into dbase within a script?
__________________
Free Mobile Phone Themes

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Old 03-27-2008, 11:22 AM Re: important need for a windows client
cwboaze's Avatar
Novice Talker

Posts: 10
Name: Chris Boaze
Location: Online - Virginia
exactly what I want.

a php script that will take data in a mysql (sql) database, and export to dbase for foxpro. That is to the T, what he wants.

Right now, he is exporting with my own written CSV exporter from mysql, in which once he has exported he has to either 1 open it in excel and save it as a XLS which I can export for him and then to foxpro, or he imports it into Microsoft Access, and converts it into dbase and then into foxpro.

So, just looking for if there's a php script or coding that will convert from mysql query to dbase file encoding. ??? know of anything! I have yet to find something and not a soul who would know. They say, change your ways and such!, can't do it with this client, he stuck on his ways. (we have one client that way).

PS> phpmyadmin, does not do that type of convertion so it's out of the picture for use.
__________________
-------------
Thanks, CB-The-One
http://www.webdevelopmenttechnology.com

Last edited by cwboaze : 03-27-2008 at 11:23 AM. Reason: added phpmyadmin ps
cwboaze is offline
Reply With Quote
View Public Profile Visit cwboaze's homepage!
 
Old 03-29-2008, 04:33 PM Re: important need for a windows client
cwboaze's Avatar
Novice Talker

Posts: 10
Name: Chris Boaze
Location: Online - Virginia
no one else knows, or knows someone who knows. lol!
__________________
-------------
Thanks, CB-The-One
http://www.webdevelopmenttechnology.com
cwboaze is offline
Reply With Quote
View Public Profile Visit cwboaze's homepage!
 
Old 03-30-2008, 01:52 PM Re: important need for a windows client
tripy's Avatar
Fetchez la vache!

Posts: 2,054
Name: Thierry
Location: In the void
I never used dbase in the laste 15 years, so I could not say.

did you checked the php dbase documentation?
Does it apply to the current products, or ols one ?
http://www.php.net/manual/en/ref.dbase.php

Quote:
There is no support for indexes or memo fields. There is no support for locking, too. Two concurrent web server processes modifying the same dBase file will very likely ruin your database.
We recommend that you do not use dBase files as your production database. Choose any real SQL server instead; » MySQL or » Postgres are common choices with PHP. dBase support is here to allow you to import and export data to and from your web database, because the file format is commonly understood by Windows spreadsheets and organizers.
__________________
Listen to the ducky: "This is awesome!!!"


Last edited by tripy : 03-30-2008 at 01:55 PM.
tripy is offline
Reply With Quote
View Public Profile
 
Old 03-30-2008, 04:32 PM Re: important need for a windows client
cwboaze's Avatar
Novice Talker

Posts: 10
Name: Chris Boaze
Location: Online - Virginia
Now that info was helpful!, I will go through the documentation and see if some of it can help me out here. lol!, it aint a end of world emergency for my client, just he would like it if I could do this, and means more business and mula, so I am out looking for anwers. Thank You for your reply!
__________________
-------------
Thanks, CB-The-One
http://www.webdevelopmenttechnology.com
cwboaze is offline
Reply With Quote
View Public Profile Visit cwboaze's homepage!
 
Old 04-01-2008, 05:21 PM Re: important need for a windows client
Learning Newbie's Avatar
Moderator

Latest Blog Post:
My Wish for Webmaster Talk
Posts: 5,181
Name: John Alexander
Quote:
Originally Posted by cwboaze View Post
So, just looking for if there's a php script or coding that will convert from mysql query to dbase file encoding.
If you have the skill to write your own CSV export writer, you're capable of easily doing the same for DBF. Just look up the format spec and a few hours later you'll be good to go.

Or, if by .SQL files you mean a lot of DML insert statements, run them against an Access database and run an export? That's less direct and more process intensive than simply writing DBF files from code, tho.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 04-01-2008, 05:29 PM Re: important need for a windows client
cwboaze's Avatar
Novice Talker

Posts: 10
Name: Chris Boaze
Location: Online - Virginia
that is one thing he does right now, he takes my either (.sql or .csv) export (hand wrote it), and take it to access then converts it to dbase. and then he's into his foxpro software.

do you have any links to come specs on the format, I mean u can name pretty much name a file any extension, just the software opening it has to support it. so writing to .dbase or whatever extension it is, and the formatted needed. Yeah!, that would do!, and would defintely lead to a good test flatform for him, to lead to a development stage peice.

thanks for your advice!
__________________
-------------
Thanks, CB-The-One
http://www.webdevelopmenttechnology.com
cwboaze is offline
Reply With Quote
View Public Profile Visit cwboaze's homepage!
 
Old 04-01-2008, 05:50 PM Re: important need for a windows client
Learning Newbie's Avatar
Moderator

Latest Blog Post:
My Wish for Webmaster Talk
Posts: 5,181
Name: John Alexander
You know Excel can write dbf files, too, right? It sounds as if you're using Excel to get the data into Access, currently, so it's possible to save one step. On that note, Access supports the notion of linked tables, so, if you've got an ODBC driver and a machine that can reach your MySQL database, you can skip the whole import export thing, and simply run a query from within Access and export the results.

That said, it's been many years since I've ever looked at dbf in any shape or form. But I do remember using QBasic code to read and write dbf files directly. If you've never used QBasic, it's a more primitive language than VB. If that was possible, a smart guy and an hour with a modern language like PHP should result in a slick ETL application.

Here's something that seems to cover up to dBase V, which is probably the last version before it died on the vine?

http://www.geocities.com/geoff_wass/...FAQ/qformt.htm
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 04-01-2008, 09:30 PM Re: important need for a windows client
cwboaze's Avatar
Novice Talker

Posts: 10
Name: Chris Boaze
Location: Online - Virginia
thanks for the info!, I will keep u updated on how it comes out!, don't know if it would be worth writing a program to offer others to use to convert files into .DBF by api or other means, lol. Never know!
__________________
-------------
Thanks, CB-The-One
http://www.webdevelopmenttechnology.com
cwboaze is offline
Reply With Quote
View Public Profile Visit cwboaze's homepage!
 
Reply     « Reply to important need for a windows client
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.15931 seconds with 12 queries