Jump to content
Xisto Corporation
Sign in to follow this  

[php]server Status

Recommended Posts

<?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.
Edited by Antv912

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.