The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Site Management
> Scripts
|
Detect if visitor has older browser (IE8 ; FF3.6)
Discuss Detect if visitor has older browser (IE8 ; FF3.6) in the Scripts forum on Dev Shed. Detect if visitor has older browser (IE8 ; FF3.6) Scripts forum discussing topics including building, optimization, and implementation. Discuss which scripting language is best suited to your needs.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

June 9th, 2011, 08:59 AM
|
|
Contributing User
|
|
Join Date: Jan 2011
Posts: 51
Time spent in forums: 14 h 54 m 56 sec
Reputation Power: 3
|
|
|
Detect if visitor has older browser (IE8 ; FF3.6)
is there a way to check if a visitor has an older browser version like IE8, FF3.6 or even older.
|

June 9th, 2011, 11:23 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
|
Yes, there's lots of different ways.
What language are you using that you want to detect this with?
|

June 10th, 2011, 06:34 AM
|
|
Contributing User
|
|
Join Date: Jan 2011
Posts: 51
Time spent in forums: 14 h 54 m 56 sec
Reputation Power: 3
|
|
|
Well, I'm mainly using PHP, so it would be nice to use PHP
|

June 13th, 2011, 11:49 PM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
|
Best way to check this is using the $_SERVER ["HTTP_USER_AGENT"] value (I've got that from memory, so it could be different). If you look at that, you can find out what browser and version most people are running.
|

June 16th, 2011, 05:48 AM
|
|
Contributing User
|
|
Join Date: Jan 2011
Posts: 51
Time spent in forums: 14 h 54 m 56 sec
Reputation Power: 3
|
|
|
okay, I'll check it out. If I got any problems you'll hear :P
|

June 18th, 2011, 12:57 PM
|
|
Contributing User
|
|
Join Date: Jan 2011
Posts: 51
Time spent in forums: 14 h 54 m 56 sec
Reputation Power: 3
|
|
|
Thanks,
I figured it out, after googling your advice I came across get_browser() and that was exactly what i needed.
|

June 21st, 2011, 01:49 AM
|
 |
Code Monkey V. 0.9
|
|
Join Date: Mar 2005
Location: A Land Down Under
|
|
|
Very nice. I hadn't heard of that functin before so that's a good one to remember now.
|

July 4th, 2011, 07:06 AM
|
|
Registered User
|
|
Join Date: Jul 2011
Posts: 91
Time spent in forums: 6 h 1 m 57 sec
Reputation Power: 0
|
|
|
where you want to add it?in ur own website or in forum?
|

July 4th, 2011, 07:42 PM
|
 |
CSS & JS/DOM Adept
|
|
Join Date: Jul 2004
Location: USA
|
|
Quote: | Originally Posted by Zobator is there a way to check if a visitor has an older browser version like IE8, FF3.6 or even older. |
While those are not the most recent versions of those two browsers they are still quite recent enough that they should be supported. For one thing, WinXP users can not upgrade to IE9+.
Any function, including get_browser(), that relies on the "User Agent" HTTP request header is inherently unreliable to one degree or another. I urge you to use it with caution.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|