if $IE

July 11, 2009 by  
Filed under Geek Fun & Humor, PHP

I was working on a web project and I usually start with Firefox to test things. Then Safari, Chrome, and then IE. By the time I got to IE, I noticed that my hard work was just not viewable. Argh. So I tweeted out:

tweet-browsercheck

function browserCh() 
{ 
     $a = $_SERVER['HTTP_USER_AGENT']; 
     $IE = ((eregi("MSIE",$a) || eregi("Microsoft",$a)))==1; 

     if($IE) 
        return 'Bad Browser!';
}

I got a laugh at some of the responses.. :)

@honging : daynah, i prefer: <style type="text/css">* html body { display: none; }</style> ;)

@j_holtslander: @daynah that was kinda hot. LOL.

@robflynn43: @daynah Haha, browserCh() made me happy. You win a high five, redeemable any time you see me. =)

@ialexs@daynah :D (re: bad browser)

Related Products:

The 50 Funniest American Writers*: An Anthology of Humor from Mark Twain to The OnionThe 50 Funniest American Writers*: An Anthology of Humor from Mark Twain to The OnionEver wondered who makes a very funny person laugh? Wonder no more. Brought together in this Library of America collection are America’s fifty funnie... Read More >
PHP for the Web: Visual QuickStart Guide (5th Edition)PHP for the Web: Visual QuickStart Guide (5th Edition)Learn PHP programming the quick and easy way!
With PHP for the Web: Visual QuickStart Guide readers can start from the beginning to get a tour... Read More >
Learn PHP: The Complete Beginner’s Guide To Learn PHP Programming (PHP Guide)Learn PHP: The Complete Beginner’s Guide To Learn PHP Programming (PHP Guide)Do you want to learn PHP Programming?
Are you looking for an easy answer to what looks like a complex problem?
PHP programming can be used f... Read More >
Related Posts Plugin for WordPress, Blogger...