[Website script] Server status
Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
Hey everyone,
As some servers have their own website and/or a community. I tought that some may wanted to put this little script in their website to show their own server status so players can check wether the server is online or offline. What this script actually does is check if the port is reachable and with this the server online. It does NOT check if the server is actually functioning. And please forgive me if you find any errors in the post, haven't slept for a while... :cry:
<?php $online = @fsockopen("127.0.0.1", 15400, $errno, $errstr, 1); if($online >= 1) { echo ''; } else { echo ''; } ?>In the script just replace the "127.0.0.1" with your IP, same goes for 15400, which is the port.
This is how it looks like for me:
Later I might also release the "players online" script.
Hope you guys can do something with this instead of that big ass gametracker.
Have a nice day,
-Decibel
EDIT: