宝塔服务器面板,一键全能部署及管理,送你10850元礼包,点我领取

<?php
$qq=7758521;//要获取头像的QQ号码
$src='https://q1.qlogo.cn/g?b=qq&nk='.$qq.'&s=100&t='.time);
header'Content-type: image/png');
$res=imagecreatefromstringfile_get_contents$src));
imagepng$res);
imagedestroy$res);
?>