I have a PHP page which breaks down in IE 6 and 7, hence I want users to not use IE. Warnings and notices will be definitely ignored by them. So as a solution, can I just stop rendering the page if the request come from IE and just display a line that IE is not supported?
I am new to php and hence the question. IE SUCKS!
Use user-agent checking:
if(stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0')) {
echo 'IE6'
};
if(stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.0')) {
echo 'IE7';
};
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With