Display ads to Internet Explorer users only

Internet Explorer users are often the ones that care the less about using a good browser or about the web designer’s development time. If you want to give them extra ads to punish them for using that browser, here is how to do it, insert the following code in your web page:

<? if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false): ?>
<!-- Insert your ad code in here -->
<? endif; ?>


Write a comment

You must be logged in to write a comment.

« »