php判断 微信,微博,来往的来路
if(strpos($_SERVER["HTTP_USER_AGENT"]"MicroMessenger")) //微信{
$source = 1;
}
else if(strpos($_SERVER["HTTP_USER_AGENT"]"Weibo")) //微博
{
$source = 2;
}
else if(strpos($_SERVER["HTTP_USER_AGENT"]"AliApp")) //来往
{
$source = 4;
}
else
{
$source = 0;
}
页:
[1]