Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Website script] Server status

Опубликовано:

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:

 

mbzy.jpg

 

 

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:

 

 

Featured Replies

Опубликовано:
You really want to cache that.

My 4d1.jeremych.com used that at first, before opening close to 1.2 million sockets over 3 days ;p

No, I really don't want to cache it, as that would use too much system resources.

 

You only cached it as you have a free shithost.

  • 2 weeks later...
Опубликовано:
You really want to cache that.

My 4d1.jeremych.com used that at first, before opening close to 1.2 million sockets over 3 days ;p

No, I really don't want to cache it, as that would use too much system resources.

 

You only cached it as you have a free shithost.

 

Oh, it's free now, is it?

and caching is good for my checker, as it has a specified bunch of IP's to check. No point in caching yours.

Опубликовано:

Oh, it's free now, is it?

>paid host capping connections

nice host you have there.

Опубликовано:

Oh, it's free now, is it?

>paid host capping connections

nice host you have there.

 

Expected for cheap non-VPS hosting.

Also, how is caching a bad thing, it's not like you need an instant snapshot every second or so..it's not the stock market.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.