Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The web address. tracker.ets2map.com/v2/fullmap Contains the data the data which I want to get.

I then wish to format this data into the form in the document shown below.

[snowball-gaming.com/2json.php]

How could i go about doing this?
I have tried several methods to retrieve the data, but i do not then know how to format the retrieved data.

Thanks for any help!

What I have tried:

<?php

$content = file_get_contents("http://tracker.ets2map.com/v2/fullmap");
$result = json_decode($content);
print_r($result);



or
<?php

$content = file_get_contents("http://tracker.ets2map.com/v2/fullmap");
$result = json_decode($content,true);
echo '
';
    print_r($result);


or Curl (but no example)
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900