<?

print("Hello World<br>");
print("You are using $_SERVER[HTTP_USER_AGENT]<br>");
print("Your Internet address is $_SERVER[REMOTE_ADDR]<br>");

// check to see if the $_SERVER[HTTP_USER_AGENT] variable contains MSIE
// the string or Internet Explorer
// this uses the ereg function for regular expressions

if (ereg("MSIE",$_SERVER[HTTP_USER_AGENT])) {
      print("Go to microsoft.com to download the latest version");

    } else {
       print("Go to netscape.com to download the latest version");

    }

?>