阅读背景:

在PHP中使用标头重命名下载文件

来源:互联网 

i have a link pointing to a music file on my site, now the name of the file was hashed when it was uploaded so i want to use the original filename which i have stored in my database, I did some research and found this new 'download' attribute for the 'a' tag but that only works in later versions of firefox and chrome, it doesn't work in ie and also doesn't work with the download manager i use so i checked online and found out about headers which i then implemented. I now get the filename changed allright but the music file keeps on getting saved as a '11.35kb' filesize no matter the music file i try to download. This is my code:i have a link pointing to a music file on my si




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: