在php中下载文件时出错 [英] error in downloading files in php

查看:69
本文介绍了在php中下载文件时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经编写了从数据库下载文件的代码,其中包括视频(3gp,mp4,flv等)和pdf'。但问题是..当我点击下载它下载文件在txt格式(包括视频)中,我需要下载时的确切格式..所以请帮我这个..

i''ve written the code to download the files from database, there it includes videos(3gp,mp4,flv etc.)and pdf''s.But the problem is..when i click download it downloads the file in txt format(including videos),i need the exact format when it is downloaded..so please help me with this..

推荐答案

这里下载文件的代码。
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


这篇关于在php中下载文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆