Php two ways to get the QQ avatar _ PHP Tutorial

Source: Internet
Author: User
Php can be used to obtain the QQ avatar. Use php to obtain the QQ avatar. Method 1 :? Php $ qq12345678; echoimgsrc. q1.qlogo. cng? Bqqnk. $ qq. s100t. time ().; Method 2 :? Php $ qq1234567 use php to obtain the QQ avatar.

Method 1:

 

Method 2:

  

The difference between the two methods:

Method 1 has the advantage of outputting the source image of the avatar. if your avatar is a dynamic gif, the output is also a dynamic image. The disadvantage is that it is slow and is not suitable for calling avatar.

The advantage of Method 2 is that it is faster than the first method, but it only captures the static graph of the Avatar and does not display the dynamic avatar. it is more suitable for calling the Avatar method.

Articles you may be interested in
  • Reasons why PHP adds a backslash before the quotation mark and how PHP removes the backslash, there are three ways to disable the php magic quotation mark
  • Php uses header () to download files. the downloaded files prompt that they are damaged and cannot be opened.
  • PHP allows multiple second-level domain names on the same server to share SESSION data
  • Php gets the method of each month in a certain period of time, and returns an array composed of these months
  • Php clears (deletes) the files in the specified directory, and does not delete the directory folder.
  • Php summarizes the N methods used to obtain the timestamp of today, tomorrow, and yesterday
  • PHP analyzes the file header information to determine the type of the uploaded file
  • Three methods for php to obtain the real IP address of the client

Bytes. Method 1 :? Php $ qq = 12345678; echo 'IMG src = "'. 'http: // q1.qlogo.cn/g? B = qqnk = '. $ qq.'s = 100 t ='. time (). '"'; Method 2 :? 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.