Mirage Source
Server Online - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Server Online (/showthread.php?tid=2369)



Server Online - William - 12-11-2008

Do anybody have that small html code that checked if a server was online by inputting the IP and PORT? I remember Elysium having it.


Re: Server Online - GIAKEN - 12-11-2008

Raygoe Wrote:Here's the source
url.php (the image)

The .HTACCESS Mod Rewrite file:
Quote:RewriteEngine On
RewriteRule ^online_(.*)_(.*)_(.*)_(.*)_.jpg?$ url.php?ip=$1&port=$2&offI=$3&onI=$4 [L]

(Change the bold to whatever file name you used. Make sure the .htaccess file is in the same directory as this one)

Requirements:
1. PHP
2. GD Library
3. FSocket Protocol External Connections Enabled
4. Ability to load external images in GD.

The hardest to come by is #3 as it is commonly shut off.

Also note for the HTACCESS Forum Version your Online and Offline Images must not contain an underscore as it would be bad... (If it does you can just change the htaccess underscores between the "(.*)"s to something like ampersands or something...



Re: Server Online - William - 12-11-2008

Hmm, my website doesn't allow php. Guess I need to contact cruzn.


Re: Server Online - Anthony - 12-11-2008

http://geocities.com/anthonyfleck/serverstatus.zip

I think that's it? I have had that on that web server since I was like 14... Haha.


Re: Server Online - GIAKEN - 13-11-2008

We've got this set up on OGCore.




Re: Server Online - William - 13-11-2008

Anthony Wrote:http://geocities.com/anthonyfleck/serverstatus.zip

I think that's it? I have had that on that web server since I was like 14... Haha.
Thats a great thing you got there. But Im not looking for anything complex really. Just something basic to see if the server is online. And I wanted it in html because my k2h website doesn't allow anything else for some reason.


Re: Server Online - Nean - 13-11-2008

William Wrote:
Anthony Wrote:http://geocities.com/anthonyfleck/serverstatus.zip

I think that's it? I have had that on that web server since I was like 14... Haha.
Thats a great thing you got there. But Im not looking for anything complex really. Just something basic to see if the server is online. And I wanted it in html because my k2h website doesn't allow anything else for some reason.


Err. I don't think HTML would do that buddy. HTML is a browser language, the barest form of a website. So pretty much the building block of a website. PHP is a dynamic language to add more features and all that shit for websites.... Yeah, I'm almost positive HTML cannot do that, though I could be wrong. I could be very wrong.


Re: Server Online - William - 13-11-2008

Yeah I guess. Cruzn made me this before:

[Image: 1.png]

I guess I'll try and contact him if he can change the IP for it.


Re: Server Online - Rian - 13-11-2008

have your server generate a html file and then upload it before it shuts down, and after it starts up via ftp.


Re: Server Online - William - 13-11-2008

Sonire Wrote:have your server generate a html file and then upload it before it shuts down, and after it starts up via ftp.
Then I rather use Anthonys idea, I dont want a external window for it. I want it added into a page on my website, like this: http://www.key2heaven.net/page.php?id=32

I'll just talk to cruzn. But thanks guys.


Re: Server Online - GIAKEN - 13-11-2008

GIAKEN Wrote:We've got this set up on OGCore.

Will that not work? :|


Re: Server Online - William - 13-11-2008

I cant get it working.


Re: Server Online - GIAKEN - 13-11-2008

Here's an example of mine:




Re: Server Online - William - 14-11-2008

That code takes forever to run. Does it run quickly for you?


Re: Server Online - GIAKEN - 14-11-2008

Yeah if it's online it does it pretty fast, but I have noticed it's kinda slow offline...and that's because of the timeout being set to 30 seconds (which I just noticed :| ).


Re: Server Online - William - 14-11-2008

Can you change that?


Re: Server Online - GIAKEN - 14-11-2008

Yeah I'll tell somebody to fix it.


Re: Server Online - William - 14-11-2008

Okay, great.