Brandan

Untitled

Jul 15th, 2012
169
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?PHP
  2. try {
  3.   $serverinfo = file_get_contents("http://xwis.brandanlasley.com:200/serverinfo.txt");
  4.   echo "Server Name: $serverinfo[0]";
  5.   echo "<br>";
  6.   echo "Current Map: $serverinfo[1]";
  7.   echo "<br>";
  8.   echo "Players Ingame: $serverinfo[2]";
  9. } catch (Exception $e) {
  10.     echo 'Error Fetching Information: ',  $e->getMessage(), "\n";
  11. }
  12. ?>
RAW Paste Data