+
80
-

为啥php5输出图片正常php7输出图片不显示了

php

同样的代码为啥php5输出图片正常php7输出图片不显示了?


网友回复

+
0
-

在header输出图片前面增加ob_clean();,代码如下:

<?php
ob_clean(); 
header('Content-type:image/png');

我知道答案,我要回答