Heim  >  Artikel  >  php教程  >  PHP检测qq在线状态

PHP检测qq在线状态

WBOY
WBOYOriginal
2016-06-07 11:45:021494Durchsuche

PHP检测qq在线状态,支持多个帐号检测
<?php <br /> $qqStr = '781787584:291277891:781787584:1585887008:10086:1035334740:8043198';<br> $qqArr = explode ( ':', $qqStr );<br> $qqArr = array_unique ( $qqArr );<br> sort ( $qqArr );<br> $qqStr = implode ( ':', $qqArr );<br> $url = 'http://webpresence.qq.com/getonline?Type=1&' . $qqStr . ':';<br> $html = file_get_contents ( $url );<br> $Arr = explode ( ']=', $html );<br> $count = count ( $Arr );<br> for($i = 1; $i      $result [$qqArr [$i - 1]] = substr ( $Arr [$i], 0, 1 );<br> }<br> print_r ( $result );<br> <br> exit ();

AD:真正免费,域名+虚机+企业邮箱=0元

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn