http with php
#3

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>
Reply


Messages In This Thread
http with php - by Bussyman - 18.04.2017, 07:19
Re: http with php - by OsteeN - 18.04.2017, 09:44
Re: http with php - by Zav1337 - 18.04.2017, 15:42

Forum Jump:


Users browsing this thread: 1 Guest(s)