php怎么获取远程网站上的图片的地址?有什么思路吗?
比如获取百度的背景图片的路径
https://ss0.baidu.com/7po3dsag_xi4khgko9wtanf6hhy/super/crop%3d229%2c229%2c1770%2c1103/sign=c9810c80b61c8701c2f9e8a61a4dac16/d1a20cf431adcbef91fbcc62a9af2edda2cc9f83.jpg
file_get_contents + preg_match_all ?
file_get_contents + preg_match_all ?
https://ss0.baidu.com/7Po3dSag_xI4khGko9WTAnF6hhy/super/crop%3D229%2C229%2C1770%2C1103/sign=c9810c80b61c8701c2f9e8a61a4dac16/d1a20cf431adcbef91fbcc62a9af2edda2cc9f83.jpg
这个不就是吗?都知道了还用获取么
https://ss0.baidu.com/7Po3dSag_xI4khGko9WTAnF6hhy/super/crop%3D229%2C229%2C1770%2C1103/sign=c9810c80b61c8701c2f9e8a61a4dac16/d1a20cf431adcbef91fbcc62a9af2edda2cc9f83.jpg
这个不就是吗?都知道了还用获取么
参考: http://www.jb51.net/article/51715.htm
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号