I totally agree with you man. The first time I visited this forum after it migrated to vBulletin I got lost, plus the archive don't work anymore, what a waste of precious information.
Regarding your question. Yes, you could try get_browser() but be sure you don't have problems with your PHP configuration scecifically browscap.ini. What I do is this;
if (ereg( 'MSIE ([0-9].[0-9]{1,2})',$HTTP_USER_AGENT,$log_version)) {
$BROWSER_VER=$log_version[1];
$BROWSER_AGENT='IE';
} elseif (ereg( 'Opera ([0-9].[0-9]{1,2})',$HTTP_USER_AGENT,$log_version)) {
$BROWSER_VER=$log_version[1];
$BROWSER_AGENT='OPERA';
} elseif (ereg( 'Mozilla/([0-9].[0-9]{1,2})',$HTTP_USER_AGENT,$log_version)) {
$BROWSER_VER=$log_version[1];
$BROWSER_AGENT='MOZILLA';
} else {
$BROWSER_VER=0;
$BROWSER_AGENT='OTHER';
}
What it does is it performs an ereg() function in $HTTP_USER_AGENT, I'm interested in IE, Opera, and Mozilla therefore I perform an ereg() for each browser name, and I place the returned value to the array $log_version. $log_version[1] holds the version of the browser.
If you're also interested unto what platform the browser is running in the following codes will do the trick;
if (strstr($HTTP_USER_AGENT,'Win')) {
$BROWSER_PLATFORM='Win';
} else if (strstr($HTTP_USER_AGENT,'Mac')) {
$BROWSER_PLATFORM='Mac';
} else if (strstr($HTTP_USER_AGENT,'Linux')) {
$BROWSER_PLATFORM='Linux';
} else if (strstr($HTTP_USER_AGENT,'Unix')) {
$BROWSER_PLATFORM='Unix';
} else {
$BROWSER_PLATFORM='Other';
}