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?
1 Hour
1 Day
1 Week
1 Month
Forever
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
SMF For Free Support Forum
>
General Stuff
>
Programming
>
PHP
>
php coder. server status page
Pages: [
1
]
« previous
next »
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
Posts: 16
php coder. server status page
«
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
(
ip
,
port
,
errno
,
errstr
,
1
);
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
[url="http://www.server-sniffer.com]
php coder
SMF For Free Newbie
Offline
Posts: 16
Re: php coder. server status page
«
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
[url="http://www.server-sniffer.com]
php coder
SMF For Free Newbie
Offline
Posts: 16
Re: php coder. server status page
«
Reply #2 on:
January 15, 2009, 02:57:39 pm »
fixed
Logged
[url="http://www.server-sniffer.com]
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
SMF For Free Site
-----------------------------
=> Announcements
=> General Discussion
=> Suggestions
-----------------------------
SMF For Free Support
-----------------------------
=> General Support
=> Guides and Tutorials
=> Stylesheet Codes
=> Stylesheet Requests and Support
=> SMF For Free Codes and Support
===> Code Requests
=> Bugs
=> Report Terms of Service Violations
-----------------------------
General Stuff
-----------------------------
=> General Chat
=> Advertise Your Board/Blog
=> Programming
===> HTML
===> JavaScript
===> C,C++
===> Java
===> .Net
===> PHP
===> Visual Basic
=> Gaming
===> PC Games
===> Nintendo
===> Playstation
===> Xbox / Xbox 360
=> Graphics
===> Living Avatars
Loading...