Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-17-2012, 01:38 AM   PM User | #1
pmflav
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
pmflav is an unknown quantity at this point
Import API - php

I would just like to start by saying sorry if this is the wrong area.
I am trying to import data from a a Game site API http://worldoftanks.com/community/cl...fset=0&limit=1, however I am not sure where to start with this one.
It doesn't appear to be standard xml.

What I am trying to do is create a script on my website which will read this page and import the data into the database, and via a cron will update it every day.

A tap in the right direction with this one would be a great help.

Thankyou in advance
pmflav is offline   Reply With Quote
Old 11-17-2012, 05:43 AM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,645
Thanks: 4
Thanked 2,450 Times in 2,419 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Its not XML, it looks to me that its JSON. Use PHP's json_decode function to return it to an array PHP can deal with.
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:56 AM.


Advertisement
Log in to turn off these ads.