auf deine hp:
Code:
<span class="status1">[COLOR="Red"]Login (Char, World) Server :[/COLOR]</span> <?PHP
$ip = gethostbyname('[COLOR="Red"]IP Adresse bei hamachi mit .100[/COLOR]');
$online = @fsockopen($ip, [COLOR="Red"]Port (Login: 11002, Char: 13000, World 13001)[/COLOR], $errno, $errstr, 4);
if (!$online)
{
echo "<img src=images/off.gif width=16 height=12 />";
}
else
{
echo "<img src=images/on.gif width=16 height=12 />";
}
@fclose($online);
?>
und dann musst du noch einen ordner der images heißt in xampp/htdocs oder wo du es halt hast erstellen und da 2 bilder rein. einf für online und das bilg dann on nennen (muss ein *.gif bild sein) und ein bild für offline und das bild off nenen (muss auch gif sein)
wenn du keine gif bilder hast musst du es im quellcode verändern.
ein bsp für den status:
Code:
<span class="status1">Login Server :</span> <?PHP
$ip = gethostbyname('*.*.*.100');
$online = @fsockopen($ip, 11002, $errno, $errstr, 4);
if (!$online)
{
echo "<img src=images/off.gif width=16 height=12 />";
}
else
{
echo "<img src=images/on.gif width=16 height=12 />";
}
@fclose($online);
?>
mfg poll7979