Results 1 to 10 of 11

Thread: Server Tracker

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Corporal STAUFFi's Avatar
    Join Date
    Aug 2012
    Location
    Germany
    Posts
    269
    Thanks
    106
    Thanked 128 Times in 83 Posts
    make


    Code:
    <?php 
    $filename = "server.cfg"; // Read Server Data
    $fp = fsockopen("udp://ip/".$filename, "14000", $errno, $errstr, 10); // Connected and streamed ip & port
     
    $contents = fread($fp, filesize($filename));
    fclose ($fp);
    ?>
    Last edited by STAUFFi; 30th April 2013 at 14:36.

  2. #2
    Private
    Join Date
    Nov 2014
    Posts
    25
    Thanks
    9
    Thanked 3 Times in 2 Posts
    Quote Originally Posted by STAUFFi View Post
    make


    Code:
    <?php 
    $filename = "server.cfg"; // Read Server Data
    $fp = fsockopen("udp://ip/".$filename, "14000", $errno, $errstr, 10); // Connected and streamed ip & port
     
    $contents = fread($fp, filesize($filename));
    fclose ($fp);
    ?>
    All that does is get the server.cfg if it's located in the directory root?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •