Go Back   RunUO - Ultima Online Emulation > Developer's Corner > Programming > Script Languages

Script Languages Perl/PHP/Python/Ruby so on and so forth.

Reply
 
Thread Tools Display Modes
Old 05-30-2006, 01:40 PM   #1 (permalink)
 
Join Date: Jan 2006
Location: Montreal, Qc
Posts: 7
Send a message via ICQ to chaale Send a message via AIM to chaale Send a message via MSN to chaale Send a message via Yahoo to chaale
Default PHP: EZ Server Status

Just copy paste edit this code in your wherever you want it to appear (must be filename.php). The only thing you have to edit is your server address.

Code:
<?php
error_reporting(0);

    $fp = fsockopen("127.0.0.1", 2593, $errno, $errstr, 1 ); //Change the IP address to your address
    if (!$fp) {
    echo "<B>Server Status:</B> <font color=660000>Offline</font><br />\r\n";
    } else {
    echo "<B>Server Status:</B> <font color=006600>Online</font><br />\r\n";
    fclose($fp);
    }
?>
__________________
Admin Chaale
Alluvius Shard
- http://uo.wgrevolution.com -
Team World Gaming Revolution
- http://www.wgrevolution.com -
chaale is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5