Home >php教程 >php手册 >让你拥有自己的QQ在线显示代码(又是转,呵呵)

让你拥有自己的QQ在线显示代码(又是转,呵呵)

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-21 09:12:171274browse

显示|在线

偶尔从某地得到
我去看了看,果然可以
但是又想了想他是怎么样和TENCENT数据库连接的呢?
呵呵~自己做一个吧!原代码如下,自己有PHP空间的话,你也可以提供QQ在线的JS代码服务了!连接代码
把下面的代码保存成PHP文件就可以了!我想他也是连接别人的数据吧~那我也连接一下他的

$file=fopen("http://www.homecgi.com/oicq.php?oicq=".$oicq,"r");
$a=fread($file,1000);
echo $a;
?>
PHP代码如下

if ($oicq==""){ }else{ $url = "http://search.tencent.com/cgi-bin/friend/oicq_find?oicq_no=$oicq"; } if(isset($url)&&$url!=""){ $str = implode("",file($url)); $str_ary = explode("ShowResult",$str); $str_ary = explode("",$str_ary[2]); $str_ary = explode("\",\"",$str_ary[0]); echo "document.write('让你拥有自己的QQ在线显示代码(又是转,呵呵)');"; }
?>



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:一个分页导航类Next article:模拟表单提交的例子