寻找从服务器下载pdf文件的脚本 [英] Looking for a script to download pdf file from server
本文介绍了寻找从服务器下载pdf文件的脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一个脚本,它将从我的服务器下载一个pdf文件,而不是在IE中打开它。我希望人们能够简单地下载文件,然后将
存储在他们PC上的某个位置。非常感谢任何帮助。
问候
迪纳摩
解决方案
< blockquote> Dynamo写道:
我正在寻找一个脚本,它将从我的
服务器下载一个pdf文件,而无需在IE中打开它。我希望人们能够简单地下载文件并将其存储在PC上的某个位置。任何帮助
非常感谢。
header(''Content-disposition:attachment'');
Grtz,
-
Rik Wasmus
非常感谢,但不知怎的,我不认为它的代码片段我自己会做什么
我想要的。我在寻找完整的代码。我尝试了以下但是
它失败了。我做错了什么?
<?php
dir_name =" / books /" ;;
Hi,
I am looking for a script that will download a pdf file from my server without
opening it in IE. I want peeople to be able to simply download the file and
store it in a location on their PC. Any help greatly appreciated.
Regards
Dynamo
解决方案
Dynamo wrote:Hi,
I am looking for a script that will download a pdf file from my
server without opening it in IE. I want peeople to be able to simply
download the file and store it in a location on their PC. Any help
greatly appreciated.
header(''Content-disposition: attachment'');
Grtz,
--
Rik Wasmus
Many thanks but somehow I dont think that snippet of code on its own will do
what I want. I was looking for the complete code. I have tried the following but
it failed miserably. What am I doing wrong?
<?php
dir_name = "/books/";
这篇关于寻找从服务器下载pdf文件的脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文