203 posts
  • Bought between 1 and 9 items
  • Canada
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
  • Sold between 1 000 and 5 000 dollars
iLochie says

Alright, I’ve never worked with an API before, and I’m wondering how I get the information onto my application. If I’m using PHP , I would parse the XML into variables, however the fread function in PHP (which is the way that I’m retrieving the API ) only works on local servers, and will not connect to a remote host. Any suggestions? Or am I just way off on how to do this?

17 posts
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • Romania
  • Sold between 1 000 and 5 000 dollars
w0lf says

Hi iLochie!

I don’t have experience with PHP , but fread sounds more to me like accessing the local file system (it probably stands for File READ ).

The API is available on a remote website, so you might want to try HttpRequest::send or something similar.

292 posts
  • Australia
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
Ezza says

Have a read of this

It explains fairly clearly a few different ways of doing it.

by
by
by
by
by
by