The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Server Status Script

View previous topic View next topic Go down

In progress Server Status Script

Post by Metorrite on January 28th 2013, 4:46 pm

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. Smile

Metorrite
Forumember

Posts : 52
Reputation : 1
Language : English | HTML | C++

http://meteorscape.forumotion.com

Back to top Go down

In progress Re: Server Status Script

Post by Metorrite on January 29th 2013, 3:45 am

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.

Metorrite
Forumember

Posts : 52
Reputation : 1
Language : English | HTML | C++

http://meteorscape.forumotion.com

Back to top Go down

In progress Re: Server Status Script

Post by Metorrite on February 1st 2013, 4:38 pm

bump, still need helpi can try explaining it again if you dont understand my question.

Metorrite
Forumember

Posts : 52
Reputation : 1
Language : English | HTML | C++

http://meteorscape.forumotion.com

Back to top Go down

In progress Re: Server Status Script

Post by levy on February 2nd 2013, 12:51 am

Is more php because ,when you press a "button" for exemple ,your server status will look offline ,that you want to explain ,yes ?

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

In progress Re: Server Status Script

Post by Metorrite on February 4th 2013, 9:04 pm

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>
and if its not online i want it to do this
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>

Metorrite
Forumember

Posts : 52
Reputation : 1
Language : English | HTML | C++

http://meteorscape.forumotion.com

Back to top Go down

In progress Re: Server Status Script

Post by Metorrite on February 4th 2013, 9:08 pm

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?

Metorrite
Forumember

Posts : 52
Reputation : 1
Language : English | HTML | C++

http://meteorscape.forumotion.com

Back to top Go down

In progress Re: Server Status Script

Post by Metorrite on February 4th 2013, 9:16 pm

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

Metorrite
Forumember

Posts : 52
Reputation : 1
Language : English | HTML | C++

http://meteorscape.forumotion.com

Back to top Go down

In progress Re: Server Status Script

Post by Metorrite on February 5th 2013, 4:48 pm

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.
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 Smile

Metorrite
Forumember

Posts : 52
Reputation : 1
Language : English | HTML | C++

http://meteorscape.forumotion.com

Back to top Go down

In progress Re: Server Status Script

Post by LGforum on February 7th 2013, 12:15 am

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.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

In progress Re: Server Status Script

Post by Metorrite on February 7th 2013, 4:35 pm

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.

Metorrite
Forumember

Posts : 52
Reputation : 1
Language : English | HTML | C++

http://meteorscape.forumotion.com

Back to top Go down

In progress Re: Server Status Script

Post by Sanket on February 7th 2013, 7:40 pm

Topic Solved & Locked

Sanket
ForumGuru

Male Posts : 48766
Reputation : 2819
Language : English
Location : Mumbai

http://webartzforum.com

Back to top Go down

In progress Re: Server Status Script

Post by Jophy on February 8th 2013, 5:26 pm

Moved back upon author's request.

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

In progress Re: Server Status Script

Post by Metorrite on February 8th 2013, 8:50 pm

@Jophy wrote:Moved back upon author's request.
thank you.

Metorrite
Forumember

Posts : 52
Reputation : 1
Language : English | HTML | C++

http://meteorscape.forumotion.com

Back to top Go down

In progress Re: Server Status Script

Post by Metorrite on February 8th 2013, 9:09 pm

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.

Metorrite
Forumember

Posts : 52
Reputation : 1
Language : English | HTML | C++

http://meteorscape.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum