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:

Laugh Tactics: Master Conversational Humor and Be Funny On Command - Think QuickLaugh Tactics: Master Conversational Humor and Be Funny On Command - Think QuickExact phrases to develop your sense of humor, master witty remarks, make people laugh, and be funnier – even if you’re not naturally funny. Laugh... Read More >
Learning PHP, MySQL & JavaScript: With jQuery, CSS & HTML5 (Learning Php, Mysql, Javascript, Css & Html5)Learning PHP, MySQL & JavaScript: With jQuery, CSS & HTML5 (Learning Php, Mysql, Javascript, Css & Html5)The fully revised, updated and extended 4th edition of the hugely popular web development book - includes CSS, HTML5, jQuery and the mysqli extension.... Read More >
Perhaps I've Said Too Much: A Great Big Book of Messing with People (HUMOR, COMEDY, SHORT STORIES)Perhaps I've Said Too Much: A Great Big Book of Messing with People (HUMOR, COMEDY, SHORT STORIES)There's a prankster in all of us. Whether you're carving evil messages into your coworker's banana peel or telling your kids that, yes, raisins are ac... Read More >
Related Posts Plugin for WordPress, Blogger...