Home  >  Article  >  Backend Development  >  请教php怎么实现让图片直接显示

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

WBOY
WBOYOriginal
2016-06-13 11:47:001061browse

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

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

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

Statement:
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