doutui6644 2014-03-22 01:48
浏览 36

如何在PHP中检测任何Internet Explorer? [重复]

This question already has an answer here:

The question is, how to detect any IE version using PHP?

I seen PHP scripts that detect specific versions of IE, but I was unable to find a way to detect any version of IE. Thanks for your help.

</div>
  • 写回答

1条回答 默认 最新

  • dqdmvg7332 2014-03-22 01:53
    关注
    <?php
    function ae_detect_ie()
    {
        if (isset($_SERVER['HTTP_USER_AGENT']) && 
        (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false))
            return true;
        else
            return false;
    }
    ?>
    

    taken from : http://www.anyexample.com/programming/php/how_to_detect_internet_explorer_with_php.xml

    评论

报告相同问题?

悬赏问题

  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制