RE: [PHP] Downloading a file

2008-07-16 Thread Robbert van Andel
("none") before session_start resolved the problem (http://bytes.com/forum/thread554529.html) Robbert From: Tom Chubb [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2008 1:41 AM To: Robbert van Andel Cc: php-general@lists.php.net Subject: Re: [PHP] Downloading a file On 16/0

Re: [PHP] Downloading a file

2008-07-16 Thread Tom Chubb
On 16/07/2008, Robbert van Andel <[EMAIL PROTECTED]> wrote: > > I am having trouble getting a file to download to work in Internet > Explorer. > The site works fine in FireFox. The page retrieves the contents of a file > from a database and outputs the following > > > > > > > header("Content-typ

[PHP] Downloading a file

2008-07-15 Thread Robbert van Andel
I am having trouble getting a file to download to work in Internet Explorer. The site works fine in FireFox. The page retrieves the contents of a file from a database and outputs the following Where $data['filename'] is the name of the file as stored in the database and $data['file'] is

[PHP] Downloading a file from MySQL

2007-05-25 Thread [EMAIL PROTECTED]
I am trying to download a file from MySQL using the following code, but it doesn't display a file just a list of files in the database. Anyone have any suggestions? Code Begin Download File From MySQL "; } else { while(list($id, $name) = mysql_fetch_array($result))

Re: [PHP] downloading a file using headers

2003-07-30 Thread Jason Sheets
You could use an iframe or you could turn on output buffering, when output buffering is enabled you can send headers after normal output has been sent. Just do ob_start(); at the top of your script. Not the most elegant way of doing it but it would work and not require you to use an iframe.

Re: [PHP] downloading a file using headers

2003-07-30 Thread Curt Zirzow
* Thus wrote Amanda McComb ([EMAIL PROTECTED]): > I have a page that queries the database then uses the data to build an > excel spreasheet. THat spreadsheet is downloaded according to info in the > headers. My manager wants to put the page inside of another HTML page to > make it prettier, but t

Re: [PHP] downloading a file using headers

2003-07-30 Thread CPT John W. Holmes
> I have a page that queries the database then uses the data to build an > excel spreasheet. THat spreadsheet is downloaded according to info in the > headers. My manager wants to put the page inside of another HTML page to > make it prettier, but then it breaks because headers are already writte

[PHP] downloading a file using headers

2003-07-30 Thread Amanda McComb
I have a page that queries the database then uses the data to build an excel spreasheet. THat spreadsheet is downloaded according to info in the headers. My manager wants to put the page inside of another HTML page to make it prettier, but then it breaks because headers are already written (it's

Re: [PHP] Downloading a file.

2003-06-12 Thread Dustin Pate
"Jeff Harris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Jun 11, 2003, "Alex Earl" claimed that: > > |> Does anyone know what to do to make it saved as: mysoft-1.0-truc.zip > |> > |> And I would like to display a page telling "Thanks for download" or > |> something...but if I

Re: [PHP] Downloading a file.

2003-06-11 Thread Jeff Harris
On Jun 11, 2003, "Alex Earl" claimed that: |> |> If he wants to download, in the file downloadit.php, there is: |> header("Content-type: application/octet-stream\n"); |> header("Content-Disposition: attachment; filename=mysoft-1.0-truc.zip"); |> header('Cache-Control: public'); |> header("Content-

Re: [PHP] Downloading a file.

2003-06-11 Thread Alex Earl
> > If he wants to download, in the file downloadit.php, there is: > header("Content-type: application/octet-stream\n"); > header("Content-Disposition: attachment; filename=mysoft-1.0-truc.zip"); > header('Cache-Control: public'); > header("Content-transfer-encoding: binary\n"); > header("Content-l

[PHP] Downloading a file.

2003-06-11 Thread Vincent M.
Hello, To download a file after a form like that: Do you want to download? If he wants to download, in the file downloadit.php, there is: header("Content-type: application/octet-stream\n"); header("Content-Disposition: attachment; filename=mysoft-1.0-truc.zip"); header('Cache-Control: public