1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Offline / Online Status script

Discussion in 'XenForo Questions and Support' started by Adam Wakefield, Jul 26, 2011.

  1. Hello,

    Im looking to add the following code to my template to display an application on an IP using a certain port if its Online or Offline.

    ""// Change to your server's IP external or domain name
    $ts_port "7777"// Make sure this port is open on the router or firewall

    $output = @fsockopen("$ts_ip"$ts_port$errno$errstr2);

    if (!
    $output) {
    "<FONT COLOR=#DD0000><B>Offline</B></FONT>";
    } else {
    "<FONT COLOR=#00DD00><B>Online</B></FONT>";
    Im new to the whole Xen forum, and need alittle help.


Share This Page