("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
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
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
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))
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.
* 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
> 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
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
"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
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-
>
> 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
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
12 matches
Mail list logo