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...