且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用curl下载间接映像文件

更新时间:2023-02-24 13:55:04

为什么不使用file_get_contents

why not just use file_get_contents like this

$img = file_get_contents("http://count.koubei.com/showphone/showphone.php?f=jpg&w=104&h=10&bc=255,255,255&fc=0,0,0&fs=10&fn=arial&phone=LTIxMDM3MjIyOTc%3D%23dWBzmKEZpTh7YcWvOw%3D%3D");
file_put_contents("photo.jpg",$img);