Html33
06-07-2009, 08:45 PM
Right, i have a little issue i was using this image to tell me the status of my server;
http://www.runelocus.com/tools/statusimg.php?ip=dhgaming.no-ip.biz&port=43594
http://www.runelocus.com/tools/statusimg.php?ip=dhgaming.no-ip.biz&port=43594
But i have decided that i want my own one so i can customise it for the forum. The URL for mine is
http://dhgaming.com/status/rspserver/index.php?ip=dhgaming.no-ip.biz&port=43594
https://vborg.vbsupport.ru/external/2009/06/128.jpg
Although, with the old one i used to be able to embed it into the page using
<img src="http://dhgaming.com/status/rspserver/index.php?ip=dhgaming.no-ip.biz&port=43594">
But with my one i can't [ just outputs a blank / missing image although when you go to the link it is there]. So i was wondering how would i get the image to display on the page? I was figuring i would need to use plugins
the code in my script is;
<?php error_reporting (E_ALL ^ E_NOTICE); ?>
<?php
$ip = "$_GET[ip]";
$port= "$_GET[port]";
$online = '<img src="online.gif">';
$offline = '<img src="offline.gif">';
if (! $sock = @fsockopen($ip, $port, $num, $error, 5))
{
echo "$offline";
echo "</font>";
}
else
{
echo "$online";
echo " </font>";
}
?>
http://www.runelocus.com/tools/statusimg.php?ip=dhgaming.no-ip.biz&port=43594
http://www.runelocus.com/tools/statusimg.php?ip=dhgaming.no-ip.biz&port=43594
But i have decided that i want my own one so i can customise it for the forum. The URL for mine is
http://dhgaming.com/status/rspserver/index.php?ip=dhgaming.no-ip.biz&port=43594
https://vborg.vbsupport.ru/external/2009/06/128.jpg
Although, with the old one i used to be able to embed it into the page using
<img src="http://dhgaming.com/status/rspserver/index.php?ip=dhgaming.no-ip.biz&port=43594">
But with my one i can't [ just outputs a blank / missing image although when you go to the link it is there]. So i was wondering how would i get the image to display on the page? I was figuring i would need to use plugins
the code in my script is;
<?php error_reporting (E_ALL ^ E_NOTICE); ?>
<?php
$ip = "$_GET[ip]";
$port= "$_GET[port]";
$online = '<img src="online.gif">';
$offline = '<img src="offline.gif">';
if (! $sock = @fsockopen($ip, $port, $num, $error, 5))
{
echo "$offline";
echo "</font>";
}
else
{
echo "$online";
echo " </font>";
}
?>