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:

PhP: Learn PHP Programming Quick & EasyPhP: Learn PHP Programming Quick & EasyWant to learn the in-demand skill of PHP programming… AND do it fast?

Are you new to computer programming or just want to brush up on some skills... Read More >

Well That's Not a Good Sign Men's Humor Funny T-Shirt (X-Large, Black)Well That's Not a Good Sign Men's Humor Funny T-Shirt (X-Large, Black)Nowhere else on the internet can you find such a wide variety of t shirts at such an affordable price! We have the largest selection clothing and funn... Read More >
PHP Cookbook: Solutions & Examples for PHP ProgrammersPHP Cookbook: Solutions & Examples for PHP Programmers

Want to understand a certain PHP programming technique? Or learn how to accomplish a particular task? This cookbook is the first place to look. Wit... Read More >

Related Posts Plugin for WordPress, Blogger...