Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 01:37

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

Advertisement



[Release] If you wanna call it a release. Server status form in php!

Discussion on [Release] If you wanna call it a release. Server status form in php! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
[Release] If you wanna call it a release. Server status form in php!

Ok, got bored so made this..


serverstatus.php :

HTML Code:
<html>
<head>
<title>Server Status!</title>
</head>
<body>
<center>
<h1>Server Status!</h1>
<form action="serverstatuscheck.php" method="post">
Server Ip : <input type="text" name="ip"><br>
Server Port: <input type="text" name="port"><br>
<input type="submit" value="Submit">
</form>
</center>
</body>
</html>
serverstatuscheck.php :

PHP Code:
<html>
<head>
<title>Server Status!</title>
</head>
<body>
<center><h1>Server Status!</h1></center>
</body>
</html>
<?php

$ip 
$_POST['ip'];
$port $_POST['port'];
       
    if (! 
$sock = @fsockopen($ip$port$errno$errstr5)) 
        echo 
"<center>Server is: <br> <font color=red>Offline</font></center>";
    else 
        echo 
"<center>Server is: <br> <font color=green>Online</font></center>";
?>
Just something you could put on a website based on pservers .. do what you want with it..
demonscim is offline  
Thanks
6 Users
Old 10/30/2008, 19:46   #2
 
ahmadinho12's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 197
Received Thanks: 25
You r Making Good Job.
Keep up and u will be a famous coder :P
ahmadinho12 is offline  
Old 10/30/2008, 20:03   #3
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
Hopefully I can be known here for php ...
demonscim is offline  
Old 10/30/2008, 20:04   #4
 
elite*gold: 0
Join Date: Apr 2008
Posts: 470
Received Thanks: 264
added to my new section in my all-in-1 thread

nice
XxArcherMasterxX is offline  
Old 10/30/2008, 21:22   #5
 
~jochemke~'s Avatar
 
elite*gold: 0
Join Date: Sep 2008
Posts: 259
Received Thanks: 64
nice "release" btw tested it and it works fine
keep up the good work
~jochemke~ is offline  
Thanks
1 User
Old 10/30/2008, 22:47   #6
 
walmartboi's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 378
Received Thanks: 163
This is simple PHP, try putting some css work into it and i'll give some karma
walmartboi is offline  
Old 10/30/2008, 23:06   #7
 
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
.. maybe later when im bored and not working on something
demonscim is offline  
Old 11/09/2008, 01:16   #8
 
glupkotrup's Avatar
 
elite*gold: 0
Join Date: May 2007
Posts: 1,195
Received Thanks: 457
@Demonscim OFF-TOPIC One thing I noticed on your siggy... Stolen pre-made siggy with a Burst-Angel Font... w00t your skills are awesome... -_-
glupkotrup is offline  
Thanks
2 Users
Old 02/09/2009, 11:04   #9
 
bazemad's Avatar
 
elite*gold: 19
Join Date: Nov 2007
Posts: 248
Received Thanks: 30
works good thanks
bazemad is offline  
Old 06/25/2010, 10:18   #10
 
sohaib's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 258
Received Thanks: 102
i put these serverstatus.php & serverstatuscheck.php in C:/appserv/www, but how can i acces it from firefox brower? and what i put on my website?
sohaib is offline  
Old 06/25/2010, 23:47   #11
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
u shouldnt bump old threads anyway idk how ask service of UCOZ coz u have made the site by them how to put it i suggest u save that 2 files into appserver/www as php files then in ur site make hmm u can create iframe <iframe name="status" width="200" height="200" frameborder="0" src="http://UR IP/serverstatus.php"></iframe> just put this where should be this status
Adziunia is offline  
Reply


Similar Threads Similar Threads
[Release]Server Status Code
06/25/2010 - CO2 PServer Guides & Releases - 11 Replies
All you need is just this sample code: <? $ip = “YOUR IP”; $port = “PORT NUMBER”; if ($check=@fsockopen($ip,$port,$ERROR_NO,$ERROR_STR, (float)0.5)) { fclose($check); echo “MY OWN SERVER<br>”;
[Release] Character form for Acro's new halo release!
02/05/2010 - CO2 PServer Guides & Releases - 9 Replies
Hello everyone, I made an edit of the character form for Acro's new halo system. The new halo system must be added for this to work. I added PK points to this one.... I'm not sure if the other character form has them. :P It didn't have them in the one I had. When you add Acro's halo system the character form will show 1..2..3..4 w/e you put for halos.
[RELEASE] Aion Server Status
10/19/2009 - Aion Hacks, Bots, Cheats & Exploits - 2 Replies
Hello, Its not a hack but can be a little handy for you. EN: Aion has scheduled and non-scheduled maintenances like any MMORPG.Because ofthat players can not always know servers are online or not.Launching Client, typing login credentials and waiting a respond from the loginserver... A little annoying and time consuming isn't it? Well,there are web services around that can show you server status but theyare not as handy as a small software on your pc and also they haveconnection...
[RELEASE] Server Status Script...
04/30/2009 - Dekaron Private Server - 9 Replies
<html> <body> Dekaron Server: <? Error_reporting(0); $fp = @fsockopen('INSERT IP HERE', PORT # HERE, $errno, $errstr, 2); if($fp){ echo '<font color=green>Online</font>'; } else{ echo '<font color=red>Offline</font>'; } fclose($fp); ?>
[Release] Adding Form to your Server
09/21/2008 - CO2 Private Server - 35 Replies
You wanna have an Form like on CoFuture? -Then you are here right. Info: Says nothing about my English, I've tried my best 1) Create a new form "Control.cs" 2) Look in General.cs for: "public static System.IO.StreamWriter sw = new System.IO.StreamWriter(Application.StartupPath + @"\ServerLog.txt", true);"



All times are GMT +2. The time now is 01:37.


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.