获取qq头像

1 <?php
2 header('content-type: image/jpeg');
3 $QQ = $_GET['qq'];
4 $time2 = date('Y-m-d H:i:s');
5 $t = strtotime($time2);
6 echo file_get_contents("http://q1.qlogo.cn/g?b=qq&nk=".$QQ . "&s=100&t=" .$t);

 

posted @ 2017-02-20 16:56  py卡卡  阅读(263)  评论(0编辑  收藏  举报