<?php
$file = fopen('a.jpg',"w");//打开文件准备写入
fwrite($file,$res);//写入,$res为图片二进制内容
fclose($file);//关闭
<?php
$file = fopen('a.jpg',"w");//打开文件准备写入
fwrite($file,$res);//写入,$res为图片二进制内容
fclose($file);//关闭