PHP实现只在IE浏览器显示广告简单代码
<P>PHP实现只在IE浏览器显示广告简单代码,看下边的代码就知道了,真的很简单,这里使用了PHP的IF语句,并且使用了short_tags,服务器必须支持才可以哦。</P><P><? if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false): ?> <BR><!-- 在此处插入(广告)代码 --> <BR><? endif; ?></P>
<P>相关阅读:<a href="http://www.veryhuo.com/a/manual/php/" target=_blank _fcksavedurl="http://www.veryhuo.com/a/manual/php/" target="_blank">PHP中文参考手册</A></P>
<P>文章源自:烈火网,原文:<a href="http://www.veryhuo.com/a/view/35424.html" target="_blank">http://www.veryhuo.com/a/view/35424.html</A></P>
页:
[1]