Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 30th, 2013  |  syntax: PHP  |  size: 0.20 KB  |  views: 566  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. switch($_SERVER['SERVER_ADDR']){
  2.     case '192.168.130.171':
  3.         echo '<h1>TPS Alpha</h1>';
  4.         break;
  5.    
  6.     case '192.168.130.172':
  7.         echo '<h1>TPS Beta</h1>';
  8.         break;
  9. }
clone this paste RAW Paste Data