Home >> Snippet List >> Snippet

Name
Browser sniffer / detector
Description
Simple code that displays the HTTP_USER_AGENT of the client
PHP Snippet
<?PHP
 
$useragent = $_SERVER ['HTTP_USER_AGENT'];
 ECHO "<b>Your User Agent is</b>: " . $useragent; 
 
?>