Because!
Also the audiance that will probably see the site will highly likely not
have the knowledge or intention to change the user agent var. So my Q
remains.
To add to my original Q is there seperate vars for browser and OS?
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
Alberto Serra [EMAIL
(;, $HTTP_USER_AGENT);
$ie_version = subStr($agent_array[1], 6,7);
}
Regards
John
- Original Message -
From: JJ Harrison [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 05, 2002 3:25 PM
Subject: Re: [PHP] Is there an easy way to divid up HTTP_USER_AGENT?
Because!
Also
JJ,
I don't know of an *easy* way, but this script (with regex's ) isn't too
bad; you can figure it out with a little bit of research.
/* begin script
ereg(^([[:alpha:]]+)/([[:digit:]\.]+)( .*)$, $HTTP_USER_AGENT, $match);
$Browser_Name=$match[1];
$Browser_Version=$match[2];
ðÒÉ×ÅÔ!
Because!
LOLOL okay. You can use this javascript stuff, it's more accurate and
does not get fooled by the rubbish people write in their user_agents
// This function attempts to determine visitor's spoken language
//
After A bit of research I wrote this(File is also attached in case e-mail
programs/servers interfere with formatting):
?
// Browser Detection
if( eregi((opera)
([0-9]{1,2}.[0-9]{1,3}){0,1},$_SERVER['HTTP_USER_AGENT'],$regs) ||
5 matches
Mail list logo