PHP学习-PHP输出图片下载

2023-05-16 13:34:34 浏览数 (1)

输出下载

代码语言:javascript复制
<?php
    $t=imagecreatetruecolor(100,100);
    $red=imagecolorallocate($t,255,0,0);
    imagefill($t,0,0,$red);
    header('Content-type:https://img.zuanmang.net/img/index.php');
    imagepng($t);
    imagedestroy($t);
?>
php

0 人点赞