PHP学习-PHP输出图片下载

  • 2019 年 12 月 12 日
  • 筆記

输出下载

<?php      $t=imagecreatetruecolor(100,100);      $red=imagecolorallocate($t,255,0,0);      imagefill($t,0,0,$red);      header('Content-type:https://img.zmki.cn/img/index.php');      imagepng($t);      imagedestroy($t);  ?>