HOME       >>       Programming

[php]server Status


Antv912

<?php $srvip = "YourIP";$srvport = "8080";?><td align="left">Web Server: <?php $fp = @fsockopen($srvip, $srvport, $errno, $errstr, 1);if (!$fp) { echo "<font style='color: #FF3300'><B>Offline</B></font></br>";} else { echo "<font style='color: #009933'><B>Online</B></font></br>"; fclose($fp);} ?></td>

To change the port, just edit this section -
$srvport = "8080";?>
Also you need to change the IP of the server or host your using when uploading this script.


VIEW DESKTOP VERSION REGISTERGET FREE HOSTING

Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.