Re: Why this file download CGI works with Firefox and fails with IE ?
- From: "Petr Vileta" <stoupa@xxxxxxxxxxxxx>
- Date: Mon, 19 Nov 2007 04:03:47 +0100
Us wrote:
In article <fhpjb2$osu$2@xxxxxxxxxxxxxxx>, stoupa@xxxxxxxxxxxxxYes, if course. I wanted to accent that must be used system path instead of "http path" ;-)
says...
Are you sure that this is a system path to file? You can't to use
URL path. For example (on unix) if your file test.zip is stored in
/var/www/htdocs/test/ then you must use
my $file='/var/www/htdocs/test/test.zip';
I think you can use indifferently full qualified path or relative one
from root or the script itself (what I've done here)
But be careful that perl script is in some directory but can be run (by Apache) from other directory. In this case the relative path is not good idea. I'm used to use some "our" variable where I have stored absolute path to web root directory and all other paths I create from this variable. For example:
# virtual server for domain mydomain.com
our $webroot = '/var/www/mydomain/home/';
....
my $downloadpath = $webroot . 'download/';
# virtual server for domain otherdomain.com
our $webroot = '/var/www/otherdomain/home/';
....
my $downloadpath = $webroot . 'download/';
I think you understand me ;-)
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail from another non-spammer site please.)
.
- Follow-Ups:
- References:
- Why this file download CGI works with Firefox and fails with IE ?
- From: Us
- Re: Why this file download CGI works with Firefox and fails with IE ?
- From: Petr Vileta
- Re: Why this file download CGI works with Firefox and fails with IE ?
- From: Us
- Re: Why this file download CGI works with Firefox and fails with IE ?
- From: Petr Vileta
- Re: Why this file download CGI works with Firefox and fails with IE ?
- From: Us
- Re: Why this file download CGI works with Firefox and fails with IE ?
- From: Petr Vileta
- Re: Why this file download CGI works with Firefox and fails with IE ?
- From: Us
- Why this file download CGI works with Firefox and fails with IE ?
- Prev by Date: Re: Print Line number as script runs..
- Next by Date: Re: Session Cookie Glitch with mod_perl 2.03 and Apache 2.2.6
- Previous by thread: Re: Why this file download CGI works with Firefox and fails with IE ?
- Next by thread: Re: Why this file download CGI works with Firefox and fails with IE ?
- Index(es):
Relevant Pages
|