find visitor's browser & operating system information by HTTP_USER_AGENT server variable in php
how-to-find-visitor-browser-operation-system-in-php.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>find visitor's browser & operating system information by HTTP_USER_AGENT server variable in php</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Md Iqbal Hosan">
<meta name="title" content="find visitor's browser & operating system information by HTTP_USER_AGENT server variable in php">
<meta name="keywords" content="php, example, code, array, function, money_format, string, HTTP_USER_AGENT, server variable, visitor browser, operating system">
<meta name="description" content="find visitor's browser & operating system information by HTTP_USER_AGENT server variable in php">
<style>
h2, h4{background:#ddd; color:#000099;}
h2{ padding:3px; margin:3px; font-size:23px;}
h4{ padding:2px; margin:2px; font-size:20px;}
p{padding:2px; margin:2px; color:#0099ee;}
body{ background:#FFFFdd;}
</style>
</head>
<body>
<h2>find visitor's browser & operating system information by HTTP_USER_AGENT server variable in php</h2>
<pre>
<?php
/*
-------------------------------------------------------------------
we want to find visitor's browser and operating system information
we can do this by using HTTP_USER_AGENT server variable in php
-------------------------------------------------------------------
*/
echo "<h4>output of user agent information by using HTTP_USER_AGENT server variable</h4>";
echo $_SERVER['HTTP_USER_AGENT'];
/*
------------------------------------------------------------------------
in professional programming it's rapidly used to get user's agent info
------------------------------------------------------------------------
*/
?>
</pre>
</body>
</html>

No comments:
Post a Comment
leave your comments here..