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 ?PHP header(Content-type:

RE: [PHP] Downloading a file

2008-07-16 Thread Robbert van Andel
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/07/2008, Robbert van Andel

[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 ?PHP header(Content-type: application/octet-stream); header(Content-Disposition:

[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 ? if(isset($_GET['id'])) { include 'library/config.php'; include 'library/opendb.php';

[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 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 written

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 then

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.

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 had to the end:

[PHP] Downloading a file.

2003-06-11 Thread Vincent M.
Hello, To download a file after a form like that: form name=download action=downloadit.php method=post Do you want to download? /form If he wants to download, in the file downloadit.php, there is: header(Content-type: application/octet-stream\n); header(Content-Disposition: attachment;

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-length: .

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'); |

[PHP] downloading XML file

2003-06-03 Thread Sichta Daniel
Hi, cfg: php 4.2.3, IIS5.1 I have generated link (from MySQL database) on my web sile, which suppose to allow user to dowload xml file. How can I do this because when I'm just adding name of the file to the href then it will be open in Browser window. How can I make the browser open the oepn or

Re: [PHP] downloading XML file

2003-06-03 Thread Marek Kilimajer
header('Content-type: application/octet-stream'); Sichta Daniel wrote: Hi, cfg: php 4.2.3, IIS5.1 I have generated link (from MySQL database) on my web sile, which suppose to allow user to dowload xml file. How can I do this because when I'm just adding name of the file to the href then it will