<?php
$img = file_get_contents('http://r1.ykimg.com/05100000575CCAF767BC3D4B250267B7');
# 网络显示图片扩展名不是必须的,只不过在windows中无法识别
file_put_contents('img',$img);
echo '<img src="img">';
php 将网络图片保存到本地的方法
最新推荐文章于 2021-11-08 10:21:25 发布
<?php
$img = file_get_contents('http://r1.ykimg.com/05100000575CCAF767BC3D4B250267B7');
# 网络显示图片扩展名不是必须的,只不过在windows中无法识别
file_put_contents('img',$img);
echo '<img src="img">';