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:

Masterpieces of American Wit and HumorMasterpieces of American Wit and HumorThomas Lansing Masson (1866-1934) was an American editor and author. In 1893 he became literary editor of Life. His books include A Corner in Women ... Read More >
PHP and MySQL Web Development (4th Edition)PHP and MySQL Web Development (4th Edition)PHP and MySQL Web Development, Fourth Edition
The definitive guide to building database-drive Web applications with PHP and MySQL

PHP ... Read More >
What If?: Serious Scientific Answers to Absurd Hypothetical QuestionsWhat If?: Serious Scientific Answers to Absurd Hypothetical Questions

From the creator of the wildly popular webcomic xkcd, hilarious and informative answers to important questions you probably never thought to ask.Read More >

Related Posts Plugin for WordPress, Blogger...