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:

Something to Read on the PlaneSomething to Read on the PlaneAnd for your in-flight entertainment – A Bit of Light Literature, Short Stories & Other Fun Stuff It’s a light-hearted variety of humorous article... Read More >
PHP Solutions: Dynamic Web Design Made EasyPHP Solutions: Dynamic Web Design Made EasyThis is the second edition of David Power's highly-respected PHP Solutions: Dynamic Web Design Made Easy. This new edition has been updated by David ... Read More >
God Does Have a Sense of HumorGod Does Have a Sense of HumorWINNER--2007 Military Writers' Society of America Gold Medal for Humor

Rob Ballister can find humor anywhere. Whether it’s in the operati... Read More >
Related Posts Plugin for WordPress, Blogger...

Popularity: 2% [?]

Stop SOPA!

SOPA breaks our internet freedom!
Any site can be shut down whether or not we've done anything wrong.

Stop SOPA!