// Include phpsniff code require_once ('phpSniff.core.php'); require_once ('phpSniff.class.php');
// Instantiate phpSniff $phpSniff=new phpSniff();
// Get the browser type and version //$browserCode=$phpSniff->property('browser'); //$browserVer=$phpSniff->property('maj_ver').$phpSniff->property('min_ver');
// Lookout for IE6 and below if($phpSniff->browser_is('ie6') || $phpSniff->browser_is('ie5')) { echo '<script type="text/javascript">document.getElementById("ldheGrLabel2").style.visibility="visible";</script>'; }