Jump to content

cadric

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

cadric's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. same for both.. and still: [b]offline: 0, [/b]
  2. Oh sorry.. But then I suppose it contains this if I set it too output the error: [b](0)[/b]
  3. I am trying to get this small script working that I managed to put together. It works...with tcp..but whenever I try to use it with udp(which is what I want to check) the script will always show the server is online, even if its not.. My server will always show it online: http://einherjers.dk/test/status.php That port this script use is not open.. Does anyone know what I am doing wrong? [code] <?php $host = "udp://einherjers.dk"; $port = "886"; $output = @fsockopen($host, $port, $errno, $errstr, 2);  if (!$output) {   echo "<img src='http://einherjers.dk/account3/images/offline.gif' alt='Offline' />"; } else {   echo"<img src='http://einherjers.dk/account3/images/online.gif' alt='Online' />"; @fclose($output);} ?> [/code]
×
×
  • Create New...

Important Information

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.