Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 18th, 2013  |  syntax: None  |  size: 0.25 KB  |  hits: 38  |  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. $ips = array(
  2.     "a" => array( 'xxx.xxx.xxx.xxx', ....),
  3.     "b" => array( 'xxx.xxx.xxx.xxx', ....),
  4. );
  5.        
  6. if(in_array($ips['a'], $_SERVER['REMOTE_ADDR'])) {
  7.     header("location: website.com/a");
  8. } else {
  9.     header("location: website.com/b");
  10. }
  11. exit;