Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 25-11-04
DanielCoe's Avatar
Home is where I hang my @
 
Join Date: Sep 2003
Location: My Bedroom
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
DanielCoe is an unknown quantity at this point
  XML Feeds - How do I use them?

Hi,

This is bit of an open question, and I'm not after any hidden tips and tricks from anyone, but I 'm totally fine with CSV data files, loading them into MySQL - creating pages with PHP etc, but now a lot of merchants are supplying XML feeds, sometimes instead of CSV files, but I have not got a clue what to do with them.

I don't think you can load XML into MySQL, unlike Oracle.

So I take it you have to have the basic XML file on your server and then parse it with PHP, but how do you search for say a distinct list of categories out of an XML feed, like you would on a DB?

In essence what is the best way to use an XML Feed?

Ta very much

Daniel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 25-11-04
Super Moderator
 
Join Date: Aug 2003
Posts: 2,451
Thanks: 0
Thanked 0 Times in 0 Posts
Rich is an unknown quantity at this point
I just download the xml and import it into mysql the same as CSV. As far as I know, you can't do a LOAD DATA into mysql from an XML file, so I just go thru it and do an insert for each record.

I was always put off XML, and still prefer CSV due to the KISS factor, but the simplexml functions in PHP5 make it a lot easier to navigate around an xml file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 25-11-04
DanielCoe's Avatar
Home is where I hang my @
 
Join Date: Sep 2003
Location: My Bedroom
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
DanielCoe is an unknown quantity at this point
So you just take the xml, strip the tags and load it like a normal data file into mysql then.

I suppose I could do that where a merchant only offers XML feeds.

Do you know of anyone who has built an affiliate site using just XML and PHP and no MySQL?

Otherwise, I guess I'll have to wait for PHP5 on my host sites then, that could be another year or two yet though.

Daniel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 25-11-04
ianm's Avatar
Avoiding real work
 
Join Date: Aug 2003
Location: Buckinghamshire
Posts: 1,382
Thanks: 0
Thanked 0 Times in 0 Posts
ianm is an unknown quantity at this point
If you've got a recent version of Excel then it shoud let you load XML files - you could then save them as CSVs to upload to your web server.

Not much help if you want to transfer them directly to your own server, but might be a quick fix while you sort out a more permanant solution.
__________________
Those who can do, those who can't talk about it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
Pingbacks are On
Refbacks are On


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7