【发布时间】:2017-09-22 13:28:13
【问题描述】:
大家好,我想像这样使用 php 从 html 标签中的数据库中检索文件
<img src="image/<?php echo $fname?>" alt=" " height="75" width="75">
这是用于图像,但我想用于检索文件,如 .doc、.ppt、.pdf、.txt
我就是这样的
<a href="file/<?php echo $filename?>"></a>
获取这样的文件
$filename = $row['file'];
检索 .ppt、.pdf、.txt 文件的更好方法是什么?
【问题讨论】:
-
什么文件?你的代码在哪里?