SearchUser loginNavigation |
A dirty little browser checkerSubmitted by elmer on Thu, 06/02/2005 - 6:41pm.
This tidbit just grabs the raw browser ID string from the $_SERVER variable. It looks for a couple of strings that identify IE, Opera, Mozilla, and Netscape 7.x. If it doesn't find one of these it assumes an old browser that can't deal with things like CSS and alerts the user. Finally, it sets a $_SESSION variable that can be checked later. Quick and dirty, but works for me :) 2573 reads
( categories: Code Samples | PHP )
|
Google SearchSearch AmazonActive forum topicsFiles- Code Samples (29)
- .NET (4) - ASP - ColdFusion (1) - Java (4) - JavaScript (2) - PERL - PHP (9) - Python (3) - Ruby (1) - Courtroom Technology (2) - Policies - Testimonials (1) - IT Policies and Forms (31) - Forms (7) - Org Charts - Policies (10) - Strategic Plans (1) - Useful Documents (4) - HowTo - Templates (1) - User Guides (1) - Utilities (3) - Windows (1) We recommendAds by Google |