ARK: Survival Evolved

ARK: Survival Evolved

Statistiken ansehen:
PHP Website Server Status
anyone have a server status PHP script that works and dont mind sharing? I run other steamcmd servers among others and have always used

$ark = fsockopen ("IP",Port, $errno, $errstr, 10)

with and if ($ark) else statement after it..

it never seems to find the port open.. ever....

thanks
< >
Beiträge 1630 von 30
Go to
http://arkservers.net/

Type in your server name or IP, then Boomark the page. Will tell you if server is up or down, Current Version, and Who is connected.

Example page (My Server)
http://arkservers.net/server/72.20.58.76:18116

And if you want they have a banner you can put on your Website (on the server page) that can show users what version, how many are connected, and if the server is up or down.

No custom scripting needed, just copy and paste the code on your website.
Zuletzt bearbeitet von JasonCGuitar; 5. Okt. 2015 um 1:58
I know that website and i'm using it, but that is not what i want.
What do you want?

The HTML banner they provide for your site is exactly what you are asking for.
Zuletzt bearbeitet von JasonCGuitar; 5. Okt. 2015 um 2:03
the code works fine here but try this one


here a liti tutorial
<?php

function isonline($ip, $port) {
//check if the port is responge
if ($socket = @fsockopen("udp://" . $ip, $port, $errno, $errstr, 0.5)) {
//if yes close the connection
fclose($socket);
//return picture online
return '<img src="http://www.freesatdz.com/images/server_online.gif" />';
} else {
//if not return picture offline
return '<img src="http://www.spelletjesplus.nl/Theme/Default/images/offline.gif" />';
}
}
?>


How to use:
<?php
//server ip
$ip = "31.214.237.147";

//server port
$port = "27015";

//server version
$version = "217.2";

//get server status picture
$server_status = isonline("{$ip}", "{$port}");

//display your message
echo "Ark Server v{$version} is now {$server_status}";
?>

i tested the 2 and works fine so i think you do somthing wrong. or your php is not propperly configered yet..

sorry for my bad english ;) but this code works fine
Ursprünglich geschrieben von ConSTANTINE:
What do you want?

The HTML banner they provide for your site is exactly what you are asking for.


yeah but al lot of people dont want this and want to get it from a API or somthing like that

i also mis this option on steam, same prinsible as facebook used steam must add this option to so you can run an api on you website to get all the information you needed..

or is this API already on steam?
Ursprünglich geschrieben von MaDHouSe:
Ursprünglich geschrieben von ConSTANTINE:
What do you want?

The HTML banner they provide for your site is exactly what you are asking for.


yeah but al lot of people dont want this and want to get it from a API or somthing like that

i also mis this option on steam, same prinsible as facebook used steam must add this option to so you can run an api on you website to get all the information you needed..

or is this API already on steam?

Why its way simpler??? Makes no sense to me to build a massive script when one is provided for you with a simple copy paste of some basic HTML
i know wat you meen but like my as a php developer want to use this to create my one element and i have total controll over it on the server information and than i can put anykind of info wat i want and not wat they want, thats the reasion why i want to use a API.

if you want a complete list of diffrend servers than your page is a mess and i dont like to have a mess in my websites ;)
Zuletzt bearbeitet von MaDHouSe; 5. Okt. 2015 um 2:26
I have script that is running at http://furry.pl/ark call me in 9 hours if you want it - i will put it on git.
Ursprünglich geschrieben von MaDHouSe:

if you want a complete list of diffrend servers than your page is a mess and i dont like to have a mess in my websites ;)

the code they provide is ONLY your server info, and not a whole list. Have you even looked at the banner they provide, its very fine tunes, not an eye sore, and provides up to the minute info.

Hell it even allows people to click the banner and JOIN the server without having to search for it.

You can see a preview of it here if you havent seen it:
http://constantineark.enjin.com/
Zuletzt bearbeitet von JasonCGuitar; 5. Okt. 2015 um 2:33
Anim 5. Okt. 2015 um 2:41 
Ursprünglich geschrieben von S.PLH ECL Sicco0803 (GER):
It seems that the code above is not working, it shows all the time that my server is offline

It may help if you post your IP:Port ?
If you are a php developer as you call yourself, then it shouldn't be hard for you do a request on the query port and ask all the info you need (same as arkservers is doing!)
Mostly whole information you need has been posted here already.
Or do you want a ready to deploy solution? That costs money.
@Seti the Dragon i've added you
Ursprünglich geschrieben von ConSTANTINE:
Ursprünglich geschrieben von MaDHouSe:

if you want a complete list of diffrend servers than your page is a mess and i dont like to have a mess in my websites ;)

the code they provide is ONLY your server info, and not a whole list. Have you even looked at the banner they provide, its very fine tunes, not an eye sore, and provides up to the minute info.

Hell it even allows people to click the banner and JOIN the server without having to search for it.

You can see a preview of it here if you havent seen it:
http://constantineark.enjin.com/



before you begin to attack me this is just a lite script that can check if a server is online thats it.. i want a api access to get more information bud steam dont have it..

if you want to play you can also create a steam link and it work fine so dont attack me this is just a lite script to check if a server in online nothing more. and wat i told before not everybody want a copy past html code in his website...



html link
<a href="javascript:void:(0);" onclick="playthegame();" title="Play - ARK Survival Evolved" class="w3-btn w3-teal">Speel mee!</a>

javascript
function playthegame() {
window . location . href = 'steam://connect/123.123.123.123:27016';
return false;
};



to create a button for your website and you can make it wat every you want.


Live Example:

http://www.madirc.nl/ark/
Zuletzt bearbeitet von MaDHouSe; 6. Okt. 2015 um 1:23
fyll 6. Okt. 2015 um 1:52 
Ursprünglich geschrieben von S.PLH ECL Sicco0803 (GER):
I know that website and i'm using it, but that is not what i want.
Well you could read the JSON this page creates.
This way you can get much more informations about the server instead of only online/offline-status... e.g. rules, settings, daytime, active players.. and so on.

Just open http://arkservers.net/api/query/{IP}:{PORT} and get all you want :)
Thank you [S.PLH] [ECL] Sicco0803 (GER) for reminding me ^^.

I have created several files for easy server maintanaince. (Ok, i wrote it in 2 hours....)

If you have a questions regarding them, feel free to ask me - i will make guide later.
Mostly - you copy the files from /web into place you want them to be (for example /var/www/..../htdocs/ark) and then you copy files from /home into /home/steam or /home/steam/arkmonitor - as you want.

You also need to put cron (use correct paths - resembling the opnes you copied the /home files to).

Change ,,config.php'' to contain your password and so on - also fill the database with init.sql tables.



PS1: rerun.sh will - shutdown the server (using pids/kill.sh ARK) then upgrade the server, and run it once more.
PS2: ./listplayers.sh "[message]" will list players and (if you provide the parameter between ") will send server message to ppl at the server (usefull if you are at work and need to inform players about incoming upgrade).

Other files are used by ./rerun.sh or are there for futher usage.

https://github.com/Setitch/ARK-ServerScrapper
< >
Beiträge 1630 von 30
Pro Seite: 1530 50

Geschrieben am: 15. Juni 2015 um 9:53
Beiträge: 30