拽拽
管理员组

php判断当前页面是不是在微信里面打开

<?php
$user_agent = $_SERVER['HTTP_USER_AGENT'];
if (strpos($user_agent, 'MicroMessenger') === false){
   header("Content-type: text/html; charset=utf-8");
   echo '请在微信中打开';
   die();
}

?>


#1楼
发帖时间:2016-4-1   |   查看数:0   |   回复数:0
游客组