27 October 2004

PHP Browser Sniffing to Promote Firefox

Posted under: at 05:09

A Friendly Advice

I spent a few minutes to implement some server side browser sniffing in order to promote Firefox. It works by detecting whether the visitor uses Microsoft Internet Explorer or not. If it finds the user are still using Internet Explorer, then it will display a warning paragraph above the usual content. To see it in action just open this page in Internet Explorer, or set your browser identification to something resembling Internet Explorer.

And by the way, WordPress’ handling of PHP code is broken, or maybe it is strange interaction between Markdown and WordPress. But either way, I can’t make a post of the code here, and I’m too lazy to fix that :).

16 Responses

Trackback: Use this URI to trackback this entry. Use your web browser's function to copy it to your blog posting.

Comment RSS: You can track conversation in this page by using this page's Comments RSS (XML)

Gravatar: You can have a picture next to each of your comments by getting a Gravatar.

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Warning: Comments carrying links to questionable sites will be removed!