IE Special Message
I am using SVG diagrams in my website. It works in all browsers except IE. I would like to add a PHP code snippet with a post for IE users.
I think I can get information about the agents from PHP, but I am not sure how to determine the version. I believe IE 9 supports it now, so I only need it for versions below IE 9.
+1
santa
source
to share
4 answers
You don't need PHP for this.
Use conditional comments instead .
+2
SLaks
source
to share
Try this: http://php.net/manual/en/function.get-browser.php
0
shox
source
to share
You can use PHP function get_browser
. See here .
The site contains numerous examples of how to detect a browser and display an appropriate message.
0
Ryan
source
to share
Put this around html
<![if lt IE 9]>
Show stuff to browsers => IE 9
<![endif]-->
<!--[if lt IE 9]>
hide stuff from browsers < IE 9
<![endif]-->
0
vascowhite
source
to share