Home > Backend Development > PHP Tutorial > 让你拥有自己的QQ在线显示代码(又是转,呵呵)_PHP

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

WBOY
Release: 2016-06-01 12:36:00
Original
948 people have browsed it

偶尔从某地得到
我去看了看,果然可以
但是又想了想他是怎么样和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在线显示代码(又是转,呵呵)_PHP');"; }
?>

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template