Server Status Script
5 posters
Page 1 of 1
Server Status Script
hi i want to have a script where it sends a request to my server and if it equals true than it will say its online if not it says its offline so i don't have to manually change it.
this is what im assuming it would look like.
<script>
*this is where it would send a request to the server and make 'server' equal true or false.*
if(server = true) {
<marquee behavior="scroll" direction="left" scrollamount="3"><font size=3>The server is </fontsize><font color=green><font size=4>ONLINE</fontsize></fontcolor></marquee>
} else {
<marquee behavior="scroll" direction="left" scrollamount="3"><font size=3>The server is </fontsize><font color=red><font size=4>OFFLINE</fontsize></fontcolor></marquee>
}
</script>
i would greatly appreciate it if anyone would know how to do it if it helps any it might be easier to make it work like www.canyouseeme.org does and just check the port to see if it responds. thanks in advanced.
this is what im assuming it would look like.
<script>
*this is where it would send a request to the server and make 'server' equal true or false.*
if(server = true) {
<marquee behavior="scroll" direction="left" scrollamount="3"><font size=3>The server is </fontsize><font color=green><font size=4>ONLINE</fontsize></fontcolor></marquee>
} else {
<marquee behavior="scroll" direction="left" scrollamount="3"><font size=3>The server is </fontsize><font color=red><font size=4>OFFLINE</fontsize></fontcolor></marquee>
}
</script>
i would greatly appreciate it if anyone would know how to do it if it helps any it might be easier to make it work like www.canyouseeme.org does and just check the port to see if it responds. thanks in advanced.
Re: Server Status Script
when "server;" is equal to true meaning that the server its sending a request to is online then i want it to make "server" equal true and do this
<marquee behavior="scroll" direction="left" scrollamount="3"><font size=3>The server is </fontsize><font color=green><font size=4>ONLINE</fontsize></fontcolor></marquee>
but when it sends a request and cannot acces it i want it to say this
<marquee behavior="scroll" direction="left" scrollamount="3"><font size=3>The server is </fontsize><font color=red><font size=4>OFFLINE</fontsize></fontcolor></marquee>
im not sure how to do it though.
<marquee behavior="scroll" direction="left" scrollamount="3"><font size=3>The server is </fontsize><font color=green><font size=4>ONLINE</fontsize></fontcolor></marquee>
but when it sends a request and cannot acces it i want it to say this
<marquee behavior="scroll" direction="left" scrollamount="3"><font size=3>The server is </fontsize><font color=red><font size=4>OFFLINE</fontsize></fontcolor></marquee>
im not sure how to do it though.
Re: Server Status Script
bump, still need helpi can try explaining it again if you dont understand my question.
Re: Server Status Script
Is more php because ,when you press a "button" for exemple ,your server status will look offline ,that you want to explain ,yes ?
Re: Server Status Script
i guess it kind of hard fo rme to explain maybe it might be better like this, i want it to be able to tell me whether or not the server is online without me having to change it manually. but i also want it to do this if it is online
- Code:
<marquee behavior="scroll" direction="left" scrollamount="3"><font size=3>The server is </fontsize><font color=green><font size=4>ONLINE</fontsize></fontcolor></marquee>
- Code:
<marquee behavior="scroll" direction="left" scrollamount="3"><font size=3>The server is </fontsize><font color=green><font size=4>ONLINE</fontsize></fontcolor></marquee>
Re: Server Status Script
its a game server i am running off of my computer and i want the text scrolling across the home page of my forum, whats JSON?
Re: Server Status Script
like where you actually play the game? because the server is off right now and i cant turn it on, i was thinking that there was a way to check if something is running on my computer and a specific port like it does on www.canyouseeme.org
Re: Server Status Script
im kind of confused of what your asking, sorry if im not understanding let me try again. you need a website that the server is running on correct? if so it doesnt run on a website i run it off my pc or a vps (virtual private server). Im just not understand what you mean when you say you need the website.
extra information if you need it, not sure if its going to help much.
EDIT: thanks so much for helping me rideem i really appreciate your help so far
extra information if you need it, not sure if its going to help much.
- Spoiler:
the game is a rsps so when you login in you put in your credentials and click play now which then trys to log you in and it will allow you into the world if the server is online otherwise it will say that it is offline on the client part.
EDIT: thanks so much for helping me rideem i really appreciate your help so far
Re: Server Status Script
In order for a server to contact the internet or transfer any information over the internet, it must itself be connected to the internet and have an address. Whether it is a designated domain or simply an IP address, it must be online with an address to point to it.
A server can not equal 'true', that's like saying a computer can equal '23', its just a random statement.
You must write a script in order to reply to the HTTP request with a response. That response could simply say 'true' if you wanted.
A server can not equal 'true', that's like saying a computer can equal '23', its just a random statement.
You must write a script in order to reply to the HTTP request with a response. That response could simply say 'true' if you wanted.
LGforum- Hyperactive
- Posts : 2265
Reputation : 264
Language : English
Location : UK
Re: Server Status Script
ok i think i understand, im using no-ip the thing i believe you are asking for rideem is the ip it is using, its meteorscape.malware-site.www
EDIT: thank you lg forum for explaining that it really helped me understand how it works thanks.
EDIT: thank you lg forum for explaining that it really helped me understand how it works thanks.
Re: Server Status Script
Topic Solved & Locked |
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Server Status Script
Moved back upon author's request.
Jophy- ForumGuru
- Posts : 17924
Reputation : 836
Language : English
Location : Somewhere
Re: Server Status Script
hi i want to have a script where it sends a request to my server and it will determine if it is online or not - if it is online it will show it on my homepage if not it says its offline so i don't have to manually change it.
Similar topics
» [How] Game Server Status
» Server Status in my Forum
» Registration Forum/Server Status
» Script: Adding Status Menu for Ventrillo to Portal/Forums
» embed Script code in forum? (<script </script>)
» Server Status in my Forum
» Registration Forum/Server Status
» Script: Adding Status Menu for Ventrillo to Portal/Forums
» embed Script code in forum? (<script </script>)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum