I have a question about using json (loaded in php) in javascript.
I load the JSON from an API. Someone said I could best do this with curl?
I've searched information about curl but I didn't found what I needed. This is what I do now:
$url='http://api.urlname.com/api/gateway/call/1.4/getApp?appid=2631';
$str = file_get_contents($url);
$data = json_decode($str);
Does someone know how I can do this?
Thanks in advance!