Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Checking to see if the MUD is up on a website
Checking to see if the MUD is up on a website
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Tue 15 Apr 2003 02:19 AM (UTC) |
Message
| I was wondering if anyone has ever put something on a website that told if a certain mud was up or down. If not, does anyone have any idea's on how it could be done? I know this is probably related to a cgi or something else but I really don't have a clue where to begin. I thought it might be convenient, so players would know not to just sit and try to connect for an hour. Anyways, all help is always appreciated.
Thanks |
~Nick Cash
http://www.nick-cash.com | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 15 Apr 2003 08:08 AM (UTC) |
Message
| Mudconnector has such a thing. Are you asking where one is, or how to write your own. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Zhamel
USA (67 posts) Bio
|
Date
| Reply #2 on Tue 15 Apr 2003 08:56 AM (UTC) |
Message
| Like Nick mentioned, there is a Java Telnet Appplet that can connect to different MUDs on the MUDConnector website. If you wish to have something similar you can get basicly the same thing at www.first.gmd.de/persons/leo/java/Telnet It can telnet into your MUD, or into another if you wanted. | Top |
|
Posted by
| Pihhan
Czech Republic (3 posts) Bio
|
Date
| Reply #3 on Tue 15 Apr 2003 11:21 AM (UTC) Amended on Tue 15 Apr 2003 11:43 AM (UTC) by Pihhan
|
Message
| Maybe you could try PHP, if you want only to see if it is up (think you want).
if you supply to check.php somethink like this:
<?php
$status = fsockopen( "my.mud.site.org", 4000, $errno, $errstr, 2 );
if ($status) {
echo "Mud is Online";
fclose($status);
} else {
echo "Mud is Down :(";
}
?>
You need site with PHP support and enabled network functions of php. (Some have this disabled due to security)
$errno is error code ( 0 = noerror )
$errstr returns error message, 2 is timeout in seconds. In php4 might be <1, 100ms timeout = 0.1
I didnt tried it now, it may not work. |
Creator of Zeme Prizraku
telnet://zeme-prizraku.mudy.cz:8000
Jabber: pihhan@jabber.cz | Top |
|
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #4 on Wed 16 Apr 2003 02:21 AM (UTC) |
Message
| Thanks for all the suggestions. I went with the PHP, and with a tiny bit of tinkering to fit it to what I needed it worked perfectly. Thanks so much, its great :) |
~Nick Cash
http://www.nick-cash.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
15,964 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top