| Author |
Message |
MontuZ Distro Developer
Joined: 10 Feb 2006 Posts: 293 Location: Myrtle Beach, South Carolina
|
Posted: Fri Feb 10, 2006 12:53 pm Post subject: "Offline/Online" Server Status PHP Code. |
|
|
This actually took me awhile to find and figure out because I don't have any clue about coding in php. Any other notes that's needed here that I forgot, or didn't know about please post them here for everyone. And if anyone knows anyother methods of doing this, again please post.
| Code: |
<?php
error_reporting(0); //If your server is offline, this will keep it from printing an error.
$fp = fsockopen("POLIP", POLPORT, $errno, $errstr, 1 );
if (!$fp) {
echo "Put your HTML Code here. For Offline";
}
else {
echo "Put your HTML Code here. For Online";
fclose($fp);
}
?>
|
Last edited by MontuZ on Fri Feb 10, 2006 3:07 pm; edited 2 times in total |
|
 |
|
| Author |
Message |
MuadDib POL Developer
Joined: 13 Feb 2006 Posts: 830 Location: Indiana, USA
|
|
 |
|
| Author |
Message |
AasanDar
Joined: 02 Feb 2006 Posts: 18 Location: Beaverton, OR, USA
|
|
 |
|
|