18.04.2017, 15:42
(
Последний раз редактировалось Zav1337; 18.04.2017 в 16:19.
)
Like OsteeN said, you could use JSON. I made small script for you. This is how your php file could look like if you use JSON.
PHP код:
<table width="500">
<tr>
<td> Killer </td>
<td> Weapon </td>
<td> Player </td>
</tr>
<?php
$i = 0;
$json = json_decode(file_get_contents("JSON URL"));
foreach($json->kills as $data)
{
if ($i++ == 10) break;
echo "<tr>";
echo "<td>".$data->killer."</td>";
echo "<td>".$data->weapon."</td>";
echo "<td>".$data->player."</td>";
echo "</tr>";
}
?>
</table>