Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Guides & Templates
You last visited: Today at 04:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How to: Make a server status checker

Discussion on How to: Make a server status checker within the CO2 Guides & Templates forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2006
Posts: 335
Received Thanks: 185
How to: Make a server status checker

Okay guide on how to make a server status checker accessed in your browser.

Things you will need:
apache server
php processor
or just AppServ
internet access
Snaity's php.ini

1) Install AppServ
2) Open notepad
2a) Put the following code into the file:
Code:
<form action="status.php" method="post">
Enter Server IP: <input type="text" name="ip" /><br>
Enter Port: <input type="text" name="port" /><br>
<input type="submit" />
</form>
Save as index.php if a message saying "Would you like to replace xxxxxxxx" Click yes
3) Open Notepad again
3a) Put the following code into the file:
Code:
<?php
			
			echo "Status: ";
			 = @fsockopen(ip, port, errno, errstr, 1);
			if (!) {
				echo "<B>Offline</B>";
			}
			else
			{
				echo "<B>Online</B>";
				fclose();
			}
			?>
Throw a $ sign infront of ip port errno and errstr then save it as status.php

4) Place the php.ini inside of C:\WINDOWS\
5) Go to localhost in your browser and you will see the results
The status checker should look somewhat like this when your done:

How to use checker:

Type in the server IP and port then hit SubmitQuery
Attached Files
File Type: zip php.ini.zip (14.5 KB, 437 views)
cjainy is offline  
Thanks
3 Users
Old 04/04/2008, 05:47   #2
 
elite*gold: 0
Join Date: Feb 2006
Posts: 988
Received Thanks: 45
but i also notice that leavemealone made 1 of this but there was a bug cuz when server down the status said was online hope urs better i check it out tomorrow f there is a bug
Acidburncx is offline  
Thanks
1 User
Old 05/25/2008, 02:16   #3
 
elite*gold: 0
Join Date: May 2008
Posts: 1
Received Thanks: 1
Parse error: syntax error, unexpected '=' in /home/halls6/public_html/bsc/status.php on line 4

How can i fix that? i did as you said and this is what i get.
privt is offline  
Thanks
1 User
Old 05/25/2008, 23:48   #4
 
adz06676's Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 450
Received Thanks: 68
Quote:
Originally Posted by privt View Post
Parse error: syntax error, unexpected '=' in /home/halls6/public_html/bsc/status.php on line 4

How can i fix that? i did as you said and this is what i get.
I got same problem.
adz06676 is offline  
Thanks
2 Users
Old 05/29/2008, 03:16   #5
 
hok30's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 1,366
Received Thanks: 256
Works for me, although the pictures are broken links (in your guide).
hok30 is offline  
Thanks
1 User
Old 05/30/2008, 02:47   #6
 
walmartboi's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
Time to correct your sucky coding, if this is even your work:
Here is the Web Form:
Code:
<form action="status.php" method="post">
Enter Server IP: <input type="text" id="ip" name="ip" /></input><br>
Enter Port: <input type="text" id="port" name="port" /></input><br>
<input type="submit" value="Check Status!" />
</form>
Here is the status.php:


The PHP and Code tags are gay here, so I had to upload it onto a host!

+Thanks would be nice.

@cjainy I prefer the method of "function statuscheck($ip, $port) more than @fsockopen, because when the server is offline, you don't get the function.winsock error
walmartboi is offline  
Thanks
2 Users
Old 06/05/2008, 00:19   #7
 
elite*gold: 20
Join Date: Apr 2008
Posts: 2,281
Received Thanks: 912
You can also do this for the web form:

Code:
  <form action="status.php" method="post">
      Enter Server IP: <input name="ip" type="text" id="ip" value="<PUT YOUR SERVER'S IP HERE>" size="15" maxlength="13" /></input><br>
      Enter Port: <input name="port" type="text" id="port" value="<PUT YOUR SERVER'S PORT HERE>" size="6" maxlength="4" /></input><br>
      <input type="submit" value="Check Status!" />
  </form>
So people don't have to type it all in, its helpful lol
kinshi88 is offline  
Old 10/19/2008, 02:52   #8
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1
Received Thanks: 0
Parse error: syntax error, unexpected '=' in /home/halls6/public_html/bsc/status.php on line 4

I got this error someone help please
cerda144 is offline  
Old 10/27/2008, 01:55   #9
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
leavemealone made a guide to about this why making a second?
XxArcherMasterxX is offline  
Old 07/29/2011, 19:06   #10
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1
Received Thanks: 0
i cwindows were u program files are?

Also i get there when i load my browser The website encountered an error while retrieving . It may be down for maintenance or configured incorrectly.
chad123123 is offline  
Reply


Similar Threads Similar Threads
[5165] server status checker
06/19/2010 - CO2 Private Server - 3 Replies
i was wondering if any1 has a server status checker for Epic WebServer 2 add 2 my main co site so people can stop asking "is server on or off?" i have tried this but it faild <?php print"SERVER:HERE"; $ip = "IP:HERE"; $port = "9958"; if (! $sock = @fsockopen($ip, $port, $num, $error, 5)) echo '<B><FONT COLOR=red>Offline</b></FONT>'; else{
[Release]Portable Server Status Checker
09/09/2009 - CO2 PServer Guides & Releases - 34 Replies
Reasons I released this: 1) I know there are lots of people who have their servers in beta testing ect, and maybe you might not have a website as yet, or a server status page. 2) I was bored. So, by the Config.ini is set to: IP=127.0.0.1 Port=80
Server Status Checker
05/17/2009 - CO2 Private Server - 0 Replies
can a co pserver that runs on hamachi have one or only for one that has access to their router...
Private Server Status Checker
01/08/2009 - CO2 Exploits, Hacks & Tools - 8 Replies
Hey everyone. Here is a private server status checker I made with AutoIt (note that the scanners might give false positives from AutoIt files...) If there are any suggestions/feedback please post! This is not limited to Private Server IPs though, it works with websites too...(just type in the website address... ex. elitepvpers - your best is our worst) This is the beta release and more will be added!
Private Server Status Checker
08/02/2008 - CO2 Exploits, Hacks & Tools - 120 Replies
Tool: Conquer Online Private Server Status Author: Future (Myself) Hello Everyone, This is a tool i decided to make which has a list of Conquer Online Private Servers and it tells you there Online status to see whether they are online or offline. Sometimes the Status bar will stay on "Connecting..." this ussually means the servers gunna be offline but just be patient as it wont take very long for the status to show up, the cause of this sometimes can be the firewall protection of the...



All times are GMT +2. The time now is 04:16.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.