PHP to get QQ Avatar two ways _php tutorial

Source: Internet
Author: User
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.