Connect your minecraft server stats to a website??
When ever the server is online the site will say its online
same for when its offline to
Reply Below
When ever the server is online the site will say its online
same for when its offline to
Reply Below
21
i want to make a custom online/offline one
HTML PLEASE
<img src="http://edudek.org/jareds/jareds_etc/server-ping.php?ip=mcwolf.no-ip.org">Like I said that is HTML just put it where you need it...
It is impossible to do it with just HTML.
Here:
Just put this HTML on the page you need the status to be.
I guess that is your IP. I saw it on your profile. If it isn't then just change it to be.
I saw you were on WIX so I knew you couldn't do PHP. Just add a HTML element to the page on the WIX editor.
It will look like this:
Online:

Offline:

Just put this HTML on the page you need the status to be.
<img src="http://edudek.org/jareds/jareds_etc/server-ping.php?ip=mcwolf.no-ip.org">
I guess that is your IP. I saw it on your profile. If it isn't then just change it to be.
I saw you were on WIX so I knew you couldn't do PHP. Just add a HTML element to the page on the WIX editor.
It will look like this:
Online:

Offline:

For any PHP developers who want to see the code:
Here you go:
<?php
$url = 'http://api.iamphoenix.me/status/?server_ip='.$_GET["ip"];
$json = file_get_contents($url);
$ping = json_decode($json, TRUE);
$status = $ping['status'];
$online = "online.png";
$offline = "offline.png";
if($status == "true"){
$im = imagecreatefrompng($online);
$text_colour = imagecolorallocate( $my_img, 35, 217, 98 );
imagestring( $im, 4, 20, 1, "Online!",
$text_colour );
//echo "Online!";
}
else{
$im = imagecreatefrompng($offline);
$text_colour = imagecolorallocate( $my_img, 128, 128, 128);
imagestring( $im, 4, 20, 1, "Offline",
$text_colour );
//echo "Offline!";
}
header( "Content-type: image/png" );
imagepng($im);
imagedestroy($im);
?>Nice script!
yay
whats the difference of the html version and the php version is the php more efficient or the same
It is a PHP version. I have it making an image so it can be shown in an HTML img tag.
If he was able to run PHP himself then he could just put the code where he needed it. But my way doesn't require anything except for an HTML page.
If hew could run the PHP on his site I would definitely recommend that rather then using my way so it would load faster.
If he was able to run PHP himself then he could just put the code where he needed it. But my way doesn't require anything except for an HTML page.
If hew could run the PHP on his site I would definitely recommend that rather then using my way so it would load faster.
make sure your website server supports php and mysql if not then we cant help
I fear you;re gonna need professional help on this...
At least make sure your website server supports PHP, otherwise we can't help!
At least make sure your website server supports PHP, otherwise we can't help!
@WolfTroop PHP is a coding language.
PMC a little help here?!??!?!
whats php?
program your page to ping your ip address on php {
if($online==true){
//Exeucte your code here:
}else{
echo "offline";
}
simple as that.
if($online==true){
//Exeucte your code here:
}else{
echo "offline";
}
simple as that.
ok
Sure. We all use the same, open technology. It's an open packet format.
-P
-P
i will send you the info
Doesn't it do it on here? Or any other server list. I think it does it on Enjin also :3.
On a custom site
