GameTracker > Forum > General Help > How do I get the data to put them on my web ?
Vultr.com - Instant Cloud Server Deployment
GAMETRACKER FORUMS
Forum Home > General Help > How do I get the data to put them on my web ?
PREV 1 2 NEXT
burnPM
#11
Jun 29, 2016 8:25 PM
Joined: Sep 27, 2006
Posts: 10924
(pardon the lack of indenting in the forum)

The W3Schools example you posted is:

<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>


The GameTracker feed is:

<?xml version="1.0" encoding="UTF-8"?>
<data>
<result>SUCCESS</result>
<resultstring/>
<server>
<name>%5BLan%20Project%5D%2001%23%20%7C~Publico.~%7C%20%5Bwww.lanproject.com.ar%5D%20%5Bby%20www.solugames.com%5D</name>
<game>Counter%20Strike%201.6</game>
<ip>190.0.164.129</ip>
<port>27015</port>
<status>alive</status>
<map>de_kabul_32</map>
<mapimage>http%3A%2F%2Fimage.www.gametracker.com%2Fimages%2Fmaps%2F160x120%2Fcs%2Fde_kabul_32.jpg</mapimage>
<rank>1265</rank>
<playerscurrent>20</playerscurrent>
<playersmax>22</playersmax>
<playersbot>0</playersbot>
</server>
</data>


I know you've already seen those. Again, please provide enough detail so people actually know what you are referring to.
Are you simply complaining that the URL extension is not .xml? If so, there is no reason it should matter.
I am retired from GameTracker after 11 years and will not be responsive for support requests.

Closed Account
#12
Jun 29, 2016 9:51 PM
Warning: simplexml_load_file(http://www.gametracker.com/datafeeds/?server_info&GAMESERVERID=5232851): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in C:\xampp\htdocs\prueba\1.php on line 2

Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://www.gametracker.com/datafeeds/?server_info&GAMESERVERID=5232851" in C:\xampp\htdocs\prueba\1.php on line 2

Notice: Trying to get property of non-object in C:\xampp\htdocs\prueba\1.php on line 7

Notice: Trying to get property of non-object in C:\xampp\htdocs\prueba\1.php on line 7

Notice: Trying to get property of non-object in C:\xampp\htdocs\prueba\1.php on line 7


<?php
$test = simplexml_load_file('http://www.gametracker.com/datafeeds/?server_info&GAMESERVERID=5232851');

?>


<?php echo $test->data->server->ip;?>
PREV 1 2 NEXT