且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在php中下载文件时出错

更新时间:2022-12-01 13:54:21

这里下载文件的代码。
here the code to download files.
展开 | 选择 | Wrap | 行号


你确定代码可以运行吗?当我尝试将参数绑定到不存在的占位符时,我预计会出现错误。
are you sure the code works at all? I?d expect an error when I try to bind a parameter to a non-existing placeholder.


感谢您的回复!..我对php不知道..我只是它的初学者...我只是得到了这个代码并执行了但是问题是下载的文件是以txt形式...所以,你能给代码从数据库下载文件吗?提前谢谢
thanks for the reply!..i don''t have any idea about php..i am just a beginner to it...i just got this code and executed though..but the problem is the downloaded files are in txt form...so, can you give the code to download files from database?? thanks in advance