php-curl下载文件
/**curl下载文件
* url 地址
savePath 保存目录
filename 文件名
*/
function downFile($url, $savePath = './',$filename=''){
//$url = 'http://www.baidu.com/img/bdlogo.png';
/*
HTTP/1.1 200 OK
Connection: close
Content-Type: image/jpeg
Content-dispo..
转载
2020-07-15 13:45:17 ·
597 阅读 ·
0 评论