how do i examine the headers sent?
- Original Message -
From: "John W. Holmes" <[EMAIL PROTECTED]>
Date: Wed, 29 Jan 2003 20:06:47 -0500
To: "''Dara Dowd''" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]&
ris Shiflett <[EMAIL PROTECTED]>
Date: Wed, 29 Jan 2003 06:47:17 -0800 (PST)
To: Dara Dowd <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: Re: [PHP] content type header for downloading files
> --- Dara Dowd <[EMAIL PROTECTED]> wrote:
> > I have the following headers in
on <[EMAIL PROTECTED]>
Date: Tue, 28 Jan 2003 21:28:19 -0800
To: "Dara Dowd" <[EMAIL PROTECTED]>
Subject: Re: [PHP] content type header for downloading files
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Change
> header("Content-Disposition: attach
I have the following headers in download.php which forces a download dialog box to be
opened when a user clicks on a desired file:
header("Content-type: application/octet");
header("Content-Length: $filelength"); header("Content-Disposition: attachment;
filename=".basename($fname).";");
This w
Is it "better" to pass variables through functions or to simply declare them as global
within the function's scope?
The variables in this particular case are things like MySQL database connections and
tablenames.
Thanks,Dara
--
For the largest free email in Ireland (25MB) &
File Storage space (
Hello,
I have a query string like this
http://server/download.php?fname=name_of_remote_file. The script runs and displays a
file download dialog box.
Is there a way of validating the querystring to ensure that a user doesn't try
something like fname=. or fname=.. or fname=? or fname=/, which ena
our needs.
>
> Regards,
> Philip
>
>
> On Wed, 4 Dec 2002, Elkan wrote:
>
> > Couldn't you set the Mime-Type on the server for the correct extenstion?
> >
> > Leif K-Brooks wrote:
> >
> > > Link them to a page like this to download the file:
Hello,
I'd like a user to be able download a file from a file server on my LAN.
Using works ok, but this simply displays
the file in the browser and I want to force the download dialog box to appear.
So now i have , and i want to do something like
fopen("file://server/directory/filename",rb
Hello everybody,
Newbie here...basically I need to develop a site that will allow users to
download files, e.g
Word docs, XL sheets, and I would like to know whether it is better to store
the entire file in a database,
or just the filepath, or even whether I need a databa
9 matches
Mail list logo