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:
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
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:
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';
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
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
* 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
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.
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:
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;
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: .
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');
|
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
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
14 matches
Mail list logo