请教php怎么实现让图片直接显示

WBOY
Release: 2016-06-13 11:47:00
Original
1060 people have browsed it

请问php如何实现让图片直接显示?
比如这样的情况:

<br /><img  src="../server/getfile.php?id=1339118000" alt="请教php怎么实现让图片直接显示" >
Copy after login

getfile.php根据id找到数据库中对应的图片路径,然后将图片数据发送给浏览器
求解答(这个问题真的很简单吧?可是我搞不清楚啊,有简单的几句代码就好)
------解决方案--------------------
我来,坐观楼主的代码,学习

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template