How to make a download button for files taken from a database?

后端 未结 2 738
梦如初夏
梦如初夏 2021-01-23 08:57

I need to print out all the files that I\'ve saved in a database and then make it possible to download them. I am able to echo them, but I don\'t know how to make a download \"b

2条回答
  •  温柔的废话
    2021-01-23 09:47

    You can read here https://www.php.net/file_put_contents, and you need to know where the path file is. ex:

    /users/john/downloads/namefile.doc

提交回复
热议问题