Ask a Question related to PHP Development, Design and Development.
-
Ness Mountain #1
Downloading filename problem
I need to have php download a datafile to use locally, and using the
following code it will download it, but for some reason it ignores my
filename="ticket.csv", and it just insists on calling the file by the name
of the php program.
header("Content-Type: application/force-download");
header("Content-Type: text/comma-separated-values");
header("Content-Type: application/download");
header("Content-Disposition: attachment; filename=ticket.csv");
header("Content-Transfer-Encoding: binary");
I see from other postings that browsers are sometimes grouchy about this,
but I'm not getting "ticket.csv.php" -- I'm just getting the name of the
program file, box_office.php. I need to be able to set the default
filename.
Doesn't filename= work at all??? Thanks for your help!
Ness Blackbird
Ness Mountain Guest
-
problem downloading
maybe you can help me find another way of downloading adobe flash player -
cfcontent filename problem
Hello all- I'm trying to use cfcontent to force the download of an exe. The problem is that when the save to disk dialog box opens, the filename... -
Query in Index Server: @filename search problem
I try to do some search in ASP using the filename on an Index server Catalog. The filename begin with date (2001_06_13.html). I do some search with... -
PC to Mac jpg Filename Problem
I'm using PS 7.0.1 on XP Pro, and whenever I save a jpg file and burn it to disc, the filenames dislay completely different on a Mac. For example,... -
problem downloading doc with IE
hi all, Lately, I found that when I click on a "link to a word doc" in IE, i can neither display nor download such doc. If I life click it,... -
Gary Petersen #2
Re: Downloading filename problem
On Sat, 30 Aug 2003 02:38:24 -0500, in message
<Xns93E7724547F3nesswillowmountainco@129.250.170.8 4>, the AI program named
"Ness Mountain" <dontspamness@willowmountain.com> randomly printed:
According to the HTTP spec (RFC 2616 section 19), you> I need to have php download a datafile to use locally, and using the
> following code it will download it, but for some reason it ignores my
> filename="ticket.csv" [...]
should only need the "Content-type: application/octet-stream"
header to cause the "Save response As..." dialog to
be displayed, and the rfc also seems to indicate that
the filename parameter is just a suggestion; I don't
think that browsers have to respect it.
Gary Petersen Guest
-
Ness Mountain #3
Re: Downloading filename problem
Gary Petersen <garyp1492@remove.meearthlink.invalid> wrote in
news:pan.2003.09.01.05.48.17.29287.426@REMOVE.MEea rthlink.INVALID:
Well, that's a bummer!!!>>> I need to have php download a datafile to use locally, and using the
>> following code it will download it, but for some reason it ignores my
>> filename="ticket.csv" [...]
> According to the HTTP spec (RFC 2616 section 19), you
> should only need the "Content-type: application/octet-stream"
> header to cause the "Save response As..." dialog to
> be displayed, and the rfc also seems to indicate that
> the filename parameter is just a suggestion; I don't
> think that browsers have to respect it.
>
Ness Mountain Guest



Reply With Quote

