谢维

你已被摧毁

欢迎自由交流


php显示图片

一、使用php函数

file_get_contents()函数把整个文件读入到一个字符串中

返回值
the function returns the read data或者失败返回false

<?php
header('content-type:image/jpg;');
$content = file_get_contents('1.jpg');
echo $content;

二、echo+img

<?php
echo "<img src='1.jpg' />";

打赏一个呗

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦