SMF For Free Support Forum
Signup For Free Forum
July 30, 2010, 06:08:53 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: php coder. server status page  (Read 1119 times)
0 Members and 1 Guest are viewing this topic.
php coder
SMF For Free Newbie
*
Offline Offline

Posts: 16


View Profile WWW
« on: January 15, 2009, 02:53:35 pm »

Forum Url: http://serverstatus.smfforfree.com
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>
<?php

echo "Status: ";
 = @fsockopen(ipporterrnoerrstr1);
if (!) {
echo "<B>Offline</B>";
}
else
{
echo "<B>Online</B>";
fclose();
}
?>

<Location /server-status>
</Location>

preview here

www.server-sniffer.com
« Last Edit: January 28, 2009, 04:28:39 am by php coder » Logged

php coder
SMF For Free Newbie
*
Offline Offline

Posts: 16


View Profile WWW
« Reply #1 on: January 15, 2009, 02:54:31 pm »

i have just found a bug.

dont use this code.
i am fixing now
Logged

php coder
SMF For Free Newbie
*
Offline Offline

Posts: 16


View Profile WWW
« Reply #2 on: January 15, 2009, 02:57:39 pm »

fixed
Logged



Pages: [1]
  Print  
 
Jump to:  



Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Hostgator Hosting
Page created in 0.273 seconds with 16 queries. (Pretty URLs adds 0.099s, 2q)