Use PHP to get QQ Avatar two ways to share.
Method One:
Method Two:
The difference between the two methods:
The advantage of method one is that you can output the original picture of the Avatar, if your avatar is animated GIF, then the output is also a dynamic graph. The disadvantage is that the speed is slow and not suitable as a method to call the avatar.
The advantage of the method two is that it is faster than the first, but only the static picture of the avatar is captured, and the dynamic avatar is not displayed, which is more suitable as a method to call the avatar.
Articles you may be interested in
- PHP to add a backslash in front of the reason and PHP to remove the backslash method, three ways to close the PHP magic quotes
- PHP with header () to achieve file download, download the file hint is broken can not open the solution
- PHP to share SESSION data with multiple level two domain name servers
- PHP gets a method for each month in a certain period of time, returning an array of these months
- PHP Empty (delete) the file under the specified directory, do not delete the Directory folder method
- PHP get today's tomorrow yesterday time stamp of N method summary
- PHP parsing file header information to determine the type of upload file
- PHP three ways to get the real IP address of the client
http://www.bkjia.com/PHPjc/764113.html www.bkjia.com true http://www.bkjia.com/PHPjc/764113.html techarticle use PHP to get QQ Avatar two ways to share. Method one:? Php$qq=12345678;echo ' img src= '. ' Http://q1.qlogo.cn/g?b=qqnk= '. $qq. ' s=100t= '. Time (). ' "; Method Two: php$qq=1234567 ...