View Single Post
Old Feb 26th, 2005, 6:10 AM   #9
Lance
Programmer
 
Lance's Avatar
 
Join Date: Oct 2004
Location: Chicago, IL USA
Posts: 74
Rep Power: 5 Lance is on a distinguished road
Send a message via AIM to Lance
Ooble: Nice, but overly complex. :p Here is an easy way to find out if the user is using IE with regular expressions:

[php]<?php
if (preg_match("/MSIE/", $_SERVER['HTTP_USER_AGENT'])) {
// do whatever you need to
}
?>[/php]

I use that to fix IE's CSS rendering issues with my website. Like, how IE requires negative margins for certain alignments. It's pretty sick... so PHP is the only way to go when fixing the bullshit IE throws onto the screen. :/
__________________
/* LANCE */
C++;  /* this makes C bigger but returns the old value */
char *site = "slackwise.net",
     *home = "lance.slackwise.net",
     *pics = "flickr.com/photos/slackwise";
Lance is offline   Reply With Quote