Reporting the User Agent and Referrer : HTTP_USER_AGENT « HTML « PHP






Reporting the User Agent and Referrer

 
<html>
<head>
<title>Reporting User Agent and Referrer</title>
</head>
<body>
<div>
<p>
Browser: <b><?php print $_SERVER['HTTP_USER_AGENT'] ?></b><br />
Referring page: <b><?php print $_SERVER['HTTP_REFERER'] ?></b>
</p>
</div>
</body>
</html>
  
  








Related examples in the same category

1.Browser Detection
2.Browser content
3.Determining client operating system and browser
4.Get Browser and Platform
5.Welcome Page with HTTP_USER_AGENT