php - How to save URL image address
伊谢尔伦
伊谢尔伦 2017-05-16 13:15:37
0
3
554
https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEc8TwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyZFdXc1pTdlBiNi0xMDAwME0wM0UAAgQHHe5YAwQAAAAA

How to save the QR code image of this kind of network address locally.

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
phpcn_u1582
file_put_contents('/tmp/qrcode.png', file_get_contents('https://mp.weixin.qq.com/cgi-bin/showqrcode?ticket=gQEc8TwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyZFdXc1pTdlBiNi0xMDAwME0wM0UAAgQHHe5YAwQAAAAA'));

Is that so?

伊谢尔伦

Wouldn’t it be solved by taking a screenshot? . .

In addition, just right-click and save as, change the suffix name and you can open it

黄舟

This is a QR code with ticket parameters generated by the WeChat public account, that is, different QR code images can be requested through different generated tickets, https://mp.weixin.qq.com/cgi-...this It is the request address, so when you save, you only need to save the ticket, and then when needed, request and display the image resources by splicing the request address.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!