如何在文件夹中显示 pdf 文件以供 codeigniter 下载

How to show pdf file in folder for download by codeigniter

我把不同的文件上传到一个文件夹,当我想把上传的文件保存在文件夹里显示在所有网页上,如何写入和删除?

没有足够的代表发表评论。所以,放弃一个答案。

假设您没有在数据库中保存文件名。

你可以使用 scandir()

you can read the manual for scandir() function here

要删除您可以使用 unlink()

You can read the manual for unlink() function here