lastofavari Posted August 12, 2012 Report Share Posted August 12, 2012 This script bellow runs well on my local machine, but on the hosting it's always "timed out": <?php ini_set( "display_errors", 0); $info = array('name' => 'SERVER', 'address' => 'IP', 'port' => 'PORT'); $ic = sizeof($info); $timeout = 3; while($ic--) echo (fsockopen("piecefulland.no-ip.org", 25565, $errno, $errstr, $timeout))? '<span style="color: blue; font-weight: bold;">ONLINE</span>' : '<span style="color: darkred; font-weight: bold;">OFFLINE</span>'; ?> Thanks! Quote Link to comment Share on other sites More sharing options...
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.