I have a question. Is there any possible way to put on a website like a server viewer? Like how some games you can go to a website and put in ip, game, and server name etc. Is there a way to do that with LFS?
<?php
php
define(name, 'servernamehere');
include('LFSWorldSDK.php');
$SDK = new LFSWorldSDK('idk');
foreach ($SDK->get_hosts() as $host) {
if ($host['HOSTNAME'] == name) {
$j = count($host['RACERNAMES']);
foreach ($host['RACERNAMES'] as $i => $racer) {
if ($i != $j) {
echo $racer . ', ';
else
echo $racer;
}
}
}
?>