I know!
use if (stristr($HTTP_USER_AGENT, 'MSIE')) { echo '<img src='\' />'; } else { echo '<img src='\' />'; }
(Probably managed to add an error somewhere, as I'm thick, but thats the jist of it. And I can't be bothered to fix the image codes. Oh well.)
(,
Sat 2 Oct 2004, 14:12,
archived)
use if (stristr($HTTP_USER_AGENT, 'MSIE')) { echo '<img src='\' />'; } else { echo '<img src='\' />'; }
(Probably managed to add an error somewhere, as I'm thick, but thats the jist of it. And I can't be bothered to fix the image codes. Oh well.)
(so at least throw away anything that contains "Opera")
hate to say it, but server-side browser-sniffing is a horribly-flawed idea.
EDIT: also, when the overwhelming market-share is held by (in this case) the lowest common denominator (IE), you really want to be doing it the other way around - serve the gif by default, and the png only to certain select browsers.
(,
Sat 2 Oct 2004, 14:19,
archived)
hate to say it, but server-side browser-sniffing is a horribly-flawed idea.
EDIT: also, when the overwhelming market-share is held by (in this case) the lowest common denominator (IE), you really want to be doing it the other way around - serve the gif by default, and the png only to certain select browsers.