Advertisement
Brandan

Untitled

Jul 15th, 2012
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement