Could anyone tell me the best way to detect a browser using php? IE 6 and 7 are terrible when it comes to achieving full browser compatibility with CSS so my site isn\'t going t
You can only reliably detect the browser user-agent using Javascript. For PHP, you have to rely on the contents of the $_SERVER['HTTP_USER_AGENT'].