将最好的解决办法是让你的网络服务器(Apache)的服务内容本身.如果必须使用PHP,那么您需要确保首先将Content-Type设置为适当的值:
header("Content-type: image/png");
Run Code Online (Sandbox Code Playgroud)
然后readfile()用来发送图像本身.
| 归档时间: |
|
| 查看次数: |
1362 次 |
| 最近记录: |