RE: [PHP] content type header for downloading files

2003-01-29 Thread Dara Dowd
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]&

Re: [PHP] content type header for downloading files

2003-01-29 Thread Dara Dowd
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

Re: [PHP] content type header for downloading files

2003-01-28 Thread Dara Dowd
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

[PHP] content type header for downloading files

2003-01-28 Thread Dara Dowd
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

[PHP] global variables

2003-01-16 Thread Dara Dowd
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 (

[PHP] validate querystring

2002-12-11 Thread Dara Dowd
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

Re: [PHP] fopen over a network

2002-12-04 Thread Dara Dowd
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:

[PHP] fopen over a network

2002-12-04 Thread Dara Dowd
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

[PHP] Need advice on downloading files and databases

2002-12-02 Thread Dara Dowd
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