How does php obtain the image address on a remote website? Do you have any ideas? How does php obtain the image address on a remote website? Do you have any ideas?
For example, obtaining the path of Baidu's background image
Https://ss0.baidu.com/7Po3dSag_xI4khGko9WTAnF6hhy/super/crop%3D229%2C229%2C1770%2C1103/sign=c9810c80b61c8701c2f9e8a61a4dac16/d1a20cf431adcbef91fbcc62a9af2edda2cc9f83.jpg
Reply to discussion (solution)
File_get_contents + preg_match_all?
File_get_contents + preg_match_all?
No regular expression. how can I match the image jpg?
Https://ss0.baidu.com/7Po3dSag_xI4khGko9WTAnF6hhy/super/crop%3D229%2C229%2C1770%2C1103/sign=c9810c80b61c8701c2f9e8a61a4dac16/d1a20cf431adcbef91fbcc62a9af2edda2cc9f83.jpg
Isn't that true? Are you sure you want to get it?
Https://ss0.baidu.com/7Po3dSag_xI4khGko9WTAnF6hhy/super/crop%3D229%2C229%2C1770%2C1103/sign=c9810c80b61c8701c2f9e8a61a4dac16/d1a20cf431adcbef91fbcc62a9af2edda2cc9f83.jpg
Isn't that true? Are you sure you want to get it?
I just want to give a Baidu example, give a URL, and then get the image from the URL.
Reference: http://www.jb51.net/article/51715.htm