Server Status - MAke Your own server status in PHP

Pages: 1, 2
free web hosting

Read Latest Entries..: (Post #12) by iGuest on Mar 7 2008, 07:42 AM. (Line Breaks Removed)
Ragnarok Server Status Can someone post a ragnarok server status script?-reply by sum1
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > CONTRIBUTE > Tutorials

Server Status - MAke Your own server status in PHP

Mistikpso
My Friend and i made an mmorpg we decided to make a code so the users could tell when the game server was running

this codoe has many other uses to like monitor a website or w/e you want to do.

CODE
<?
$ip = "youriphere";
$port = "yourporthere";
if (! $sock = @fsockopen($ip, $port, $num, $error, 5))
echo '<B><FONT COLOR=red>Offline</b></FONT>';
else{
echo '<B><FONT COLOR=lime>Online</b></FONT>';
fclose($sock);
}
?>


-open a text editor like notepad
-Put this code in your <Body> of index.html or w/e page you are using
-after you finish adding the code make sure you set the port and IP
-and when you add all the data save your file as index.php
-upload the file
-Finished ~ your server status is set ~

Reply

Florisjuh
Very nice tutorial, I've been looking for a script like this to monotor my Wolfenstein Enemy Teritory game servers, and put some information about it on my trap17 website (I run a clan)...

Notice from snlildude87:
Seriously, did you have to quote the entire post? When there are no quotes, it's understood that you're replying to the first post in the thread.

Reply

mizako
I agree it is an easy but useful script. However i could not watch your script in action. It seems your link is a broken one.

Notice from snlildude87:
Seriously, did you have to quote the entire post? When there are no quotes, it's understood that you're replying to the first post in the thread.

Reply

Mistikpso

i just tested the link and it seems fine - it might take a second to see the main page.

Reply

snlildude87
After two posts, I have to say something...please do not quote the first post in the thread. It's all understood.

Thank you.

Reply

rvalkass
I have seen a few of these, but I always thought they were long and complicated. Thanks very much for this script.

Reply

Saint_Michael
hmmm not bad of a scriptm could be useful on alot of gaming servers. kudos

Reply

Mistikpso
yeah im putting a LDU800 on my site so i have to get rid of the demo - sry

Reply

engalex
nice man
biggrin.gif

Reply

Dynomite
Nice script, I also made a slight change for anyone who wants it.

If you are are hosted on Trap17 and you have an upload module that uses FTP you can modify this to check if the uploader will work by setting using these settings.
$ip = "69.50.188.18";
$port = "21";

So your overall-all script would be
CODE
<html>
<body>

<?php

$ip = "69.50.188.18";
$port = "21";
if (! $sock = @fsockopen($ip, $port, $num, $error, 5))
echo '<div align="center">The upload is <font color=red><b>Offline</b></FONT></div><br><br>';
else{
echo '<div align="center">The upload is: <font color=green><b>Online</b></FONT></div><br><br>';
fclose($sock);
}

?>

</body>
</html>

 

 

 


Reply

Latest Entries

iGuest
Ragnarok
Server Status

Can someone post a ragnarok server status script?

-reply by sum1

Reply

Adamrosso
Nice script. I will add this to my website for my users to see what a great host i have =). Thank's for sharing your script; Mistik =D

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2
Recent Queries:-
  1. server status button - 0.27 hr back. (1)
  2. making a server ip status code - 0.40 hr back. (1)
  3. radio server status checker - 5.88 hr back. (1)
  4. how to make php server status checker - 9.98 hr back. (1)
  5. server status php make - 10.71 hr back. (2)
  6. cs server status php script - 11.79 hr back. (2)
  7. web cs server status script - 18.64 hr back. (1)
  8. make php status - 22.13 hr back. (2)
  9. php cs 1.6 server status - 30.31 hr back. (1)
  10. dedicated server status script - 33.48 hr back. (2)
  11. cs server status checker - 34.76 hr back. (1)
  12. cs 1.6 php server status - 35.09 hr back. (1)
  13. server status check javascript - 35.50 hr back. (1)
  14. how to make server status checker - 40.93 hr back. (1)
Similar Topics

Keywords : server, status, make, server, status, php

  1. How To Make Your Own Counter Strike Source Dedicated Server!
    (38)
  2. How To Create Counter-strike 1.6 Server In Console Mode
    (5)
    Hello! Now I will show you how to create a CS 1.6 Dedicated server /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> 1. Locate HLDS.exe. It
    could start it from Steam. 2. Make a batch file. You could name it how you like, I writed it as
    start.bat. It should be located in the same folder as the HLDS.exe. It should contain something like
    this: CODE HLDS.EXE -console -game cstrike -port 27015 +maxplayers 24 +map bl_counterquake
    +sv_lan 0 +rcon_password yourrconpass -secure I recommend -console to be there, couse it starts
    hld....
  3. Starting Or Stopping Apache And Mysql Server Via Batch File
    (0)
    Hi guys, this is a litte tutorial about how we start and stop the Apache and MySQL in Windows NT
    (2000, XP, 2003) via a batch file script. As we know in Windows NT based system Apache and MySQL
    installed as Windows Services. So we can stop and start it using NET command. For more information
    about DOS command, type HELP at command prompt. I assuming that your MySQL service name is "mysql"
    and your Apache (Apache 2.0.x) service name is "apache2". If you want to chek it click Start > Run >
    services.msc > OK. Windows IS NOT Case Sensitive. Let's get started!. 1. ....
  4. Making A Dynamic Page On Blogspot
    Using an external server to make your pages hosted on blogspot dynamic (5)
    Good morning everyone. Have you ever wondered how to allow your visitors to edit content on your
    blog? Like adding a post straight off the page, adding a link, editing your profile etc. This will
    be extremely useful if you want your visitors to contribute to your blog besides writing comments or
    tagging. 1. Adding a post straight off the page. Go to blogger.com, login, select your blog. Go to
    settings -> email. By enabling blog email, you can now add a post by simply sending an email to the
    address you specified. The address should look something like: yourusername....
  5. Checking For Open Ports From Php
    If you want to check the status of a server at a specific port you can (3)
    Some days ago, i needed to check ports of a server from a webpage, for advising of its status. I
    simply used a great php code that's fsockopen . I'll explain it in the following example:
    (Imagine a file called 'checkports.php', containing the next) CODE <? $address
    =" trap17.com"; //Here you can specify the address you want to check ports $port =
    "80"; //Here you can specify the port you want to check from $address $checkport =
    fsockopen($address, $port, $errnum, $errstr, 2); //The ....
  6. Run Your Own Mail / Radio Server
    SHOUTcast and more (24)
    firstly i want to point out that i did have alot more images that i took for this tutorial but i was
    only aloud to show 15 in this post /sad.gif" style="vertical-align:middle" emoid=":(" border="0"
    alt="sad.gif" /> ill ask for the ammount to be raised then i can add the rest in /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> ok here we go.. Audio
    Streaming Server (Radio) What is a Streaming Audio Server Its an application that will allow you to
    "stream" or send a continuous block of data to a client. In a few words, it will allow....
  7. A Nice Mysql Server Check
    (4)
    I made this and its not very hard at all just fill in the info and it willl see if your mysql is up
    or down CODE <html> <head> <title> Mysql Connection Test
    </title> </head> <body> <h2> <?php // On this you need to put
    your host most of the times localhost username and password. $conncect = mysql_connect (
    "host", "Username", "password" ) or die (" Sorry your server
    can't connect to your mysql server <BR> Check to see you have put in the Username and....
  8. Set Os X Server 10.3 Dhcp To Filter Desks
    Restrict which PCs/Macs get DHCP IP #s (0)
    Among my other duties, I help run a small computing lab for med students at the U of MN. Recently I
    learned that though we only have about twenty legitimate DHCP clients on our wired ethernet getting
    addresses from our Mac OS X 10.3 Server (great system), thirty allocated DHCP addresses were being
    used. Huh? I found that some addresses went to testing, which I understand, but others were being
    grabbed by PCs that should have static IPs but were misconfigured and/or by outsiders who unplugged
    our PCs to network personal laptops (a no-no). We don't watch our PCs all t....
  9. How To Setup Your Own Dns (domain Name Server)
    (1)
    How To Setup Your Own Dns (Domain Name Server) This is only a quick tutorial, there are literally
    hundreds of little tricks you can do with a DNS, but this will get your basics up and running.
    I'm assuming you want to setup a windows DNS server, but the principals will work for most
    servers. You will need.. 1) A domain name over which you have full control 2) DNS server
    software(Windows server always comes with one of these) 3) At least one fixed IP address, allthough
    two is highly desirable 4) An idea of what services you want on your server The first thing you ....
  10. Checking Your Php Version
    check your version of your server (1)
    This is a very easy tutorial, others may know of this... step 1 => Download the attachment step 2
    => upload to your public directory step3 => open and run the files and you'll get a whole list
    of your server environment and so on.......
  11. Image Preloader With Progress Bar Status
    Pure Client-Side JavaScript tested in 4 Browsers! (23)
    Tutorial: Image Preloader with Progress Bar, by Rob J. Secord, B.Sc. (SystemWisdom)
    Description : A Tutorial for a Client-Side Image Preloader with Dynamic Real-Time Progress Bar
    Indicator written in JavaScript! Tested to work with 4 Major Internet Browsers: Firefox, MSIE,
    Netscape, Opera (Complete sample solution provided at end of tutorial, just put it on your
    web-server, add your images and go!) Intended Audience : Beginner to Intermediate Web
    Developers. Although this tutorial will cover some advanced aspects of JavaScript, I will try to
    explain....
  12. Installing And Connecting To A Ventrilo Server
    (0)
    1: Download The Client From http://www.ventrilo.com/download.php 2: Install The Client 3: Boot
    The Client 4: Click the Arrow Pointing to the Right beside the User Name Tab. 5: Click The New
    Button 6: Type In Your Desired Username And Hit Ok 7: In The Phonetic Spot, type your username
    again 8: Enter A Description If Wanted and click ok 9: Click the arrow pointing to the right
    beside the server tab. 10: click the new button. 11: Type in a name for the server. 12: Type in
    the server address that you are connecting to in the Hostname or IP slot. 13: Click Ok. ....

    1. Looking for server, status, make, server, status, php

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for server, status, make, server, status, php

*MORE FROM TRAP17.COM*
advertisement



Server Status - MAke Your own server status in PHP



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE