Wiggins D'Anconia wrote:
> [EMAIL PROTECTED] wrote:
> >  How can I grabb the browser name Opera and the version number from a string,
> > when it's very important that I get the whole version number. For example:
> >
> > Windows XP) Opera 6.05 [en]
> >
> > or
> >
> > MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.0 [en]
> >
> > Can anyone show me the best way to place Opera and the whole version (i.e.,
> > "Opera 6.05" or any other version number) in a string variable. I thought
> > maybe a regex would work, but as a newbe I'm just spinning my wheels. Thanks.
> >
>
> While I saw that you got the answer you needed, no one interjected that
> this may not be the wisest thing to do as the browser's identification
> string is easily changed/spoofed/non-standard.  And there is no good way
> to detect all browsers, as many spiders use their own variant.  In
> general if your site is designed such that you need this information
> then you should revisit your design/code, if you are just doing stat
> tracking, etc. make sure to indicate that there is at least some margin
> of error. I know for one of the browsers and I thought it was Opera that
> it was even in the preferences how to change the string....

Webmonkey has a useful set of pages called Browser Detection at

    http://hotwired.lycos.com/webmonkey/99/02/index2a.html

HTH,

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to