Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 2nd, 2004, 03:59 PM
Authorized User
 
Join Date: Feb 2004
Location: Henley, Oxfordshire, United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mekh Send a message via Yahoo to mekh
Default Interfacing PHP/MYSQL to existing Database...

Hi,

Can anybody please help me or give me any idea about interfacing PHP/MYSQL to any existing Database like dbase III...However is it possible to do so? Otherwise is it possible to retrieve the mysql data in the existing form...?

Thank You..

mekh
__________________
MD Gurung
Reply With Quote
  #2 (permalink)  
Old February 2nd, 2004, 07:08 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, PHP has a dbase extension that allows you to access dbase databases. You could write a little script that extracts all the records from DBF and insert them into MySQL.

It would probably be easier if you used a conversion tool.

A simple google search (import dbase dbf into mysql) yields many results. Among them:
  http://www.sqldbu.com/eng/sections/t...sqlimport.html


Take care,

Nik
http://www.bigaction.org/
Reply With Quote
  #3 (permalink)  
Old February 3rd, 2004, 05:51 AM
Authorized User
 
Join Date: Feb 2004
Location: Henley, Oxfordshire, United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mekh Send a message via Yahoo to mekh
Default

Thank you Nik,

Actually I want is interfacing my PHP/MYSQL website with the TELEMAGIC that is running since last 5 years...Can you please suggest me what can I do?

Thanx
Mekh



mekh dev gurung
Reply With Quote
  #4 (permalink)  
Old February 3rd, 2004, 02:52 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Telemagic should allow you to export data. I don't know what format it exports it in, but if it's text based, you should be able to write a fairly simple parser in PHP that'll read that file and import the data into MySQL for you.

Of course, it'd be much easier if you can get telemagic to export it's data in SQL format...

What does the telemagic documentation say?


Take care,

Nik
http://www.bigaction.org/
Reply With Quote
  #5 (permalink)  
Old February 4th, 2004, 08:02 PM
Authorized User
 
Join Date: Feb 2004
Location: Henley, Oxfordshire, United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mekh Send a message via Yahoo to mekh
Default

Thanx NIK,

Actually I mean extracting the DATA from PHP/MYSQL to TELEMAGIC which is using dbIII... However I don't know how is dbase working there...
Is there any idea like exporting data inside any Normal Form...?

Take Care

mekh

mekh dev gurung
Reply With Quote
  #6 (permalink)  
Old February 4th, 2004, 10:02 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, you should also be able to do a data import into telemagic. It probably recognizes standard SQL and/or CSV (comma-separated values). You can easily write a script (or download one) that dumps MySQL contents into these formats. For example, PhpMyAdmin supports several different dump modes.

Again, I've never used telemagic so I'm pretty much useless to you -- read the manual for Telemagic, specifically the areas that deal with importing data. It might just be that it has an ODBC driver that can connect to MySQL directly.


Take care,

Nik
http://www.bigaction.org/
Reply With Quote
  #7 (permalink)  
Old February 8th, 2004, 06:04 PM
Authorized User
 
Join Date: Feb 2004
Location: Henley, Oxfordshire, United Kingdom.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mekh Send a message via Yahoo to mekh
Default

Thanx NIK,

I will try my best and do inform you whenever I got through this problem...Do keep in touch

Mekh
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
entering £ (pound sign) into MySQL database - PHP crmpicco PHP Databases 1 November 14th, 2007 02:02 AM
Adding a column to an existing SQL database table furjaw SQL Language 10 May 17th, 2007 06:35 PM
create database in mysql through php coding vivekananth PHP Databases 2 January 31st, 2007 01:48 AM
begin php & mysql - chapter 12, user_form.php jon_stubber Beginning PHP 1 March 9th, 2006 10:57 AM
Adding existing and non-existing attributes spencer.clark XSLT 5 July 27th, 2005 04:02 PM



All times are GMT -4. The time now is 08:35 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.