To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Generating an Excel file?
Name it for example something.csv
The in your .htaccess file put
Files something.csv
ForceType application/x-httpd-php
/Files
Olwen Williams
[EMAIL PROTECTED]
-Original Message-
From: John W. Holmes [mailto:[EMAIL
John W. Holmes wrote:
From what I've seen on here, the only workaround is to pass
an extra variable in the URL that ends in .csv, even though
you don't need to use that variable.
file.php?var=whateverdummy=f.csv
Olwen - Sal Williams wrote:
Name it for example something.csv
The in your
if you are using sessions:
remove session_start() inside the downloadscript
or play around with http-headers, e.g.:
session_start();
header(Expires: .gmdate(D, d M Y H:i:s, 0). GMT);
header(Last-Modified: .gmdate(D, d M Y H:i:s). GMT);
header(Cache-Control: private, max-age:0);
header(Pragma:
[EMAIL PROTECTED] wrote:
or download the file without the php-script and analyse the
http-headers with a network-sniffer
There is no way to download the file without the PHP script. It is
being generated by the PHP script from data in a database. The file
does not actually exist.
-Ben
--
From: Ben Ramsey [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
or download the file without the php-script and analyse the
http-headers with a network-sniffer
There is no way to download the file without the PHP script. It is
being generated by the PHP script from data in a database. The
save the data from the script to a file and download this file
Tue, 20 Jan 2004 12:56:49 -0500 Ben Ramsey [EMAIL PROTECTED]:
[EMAIL PROTECTED] wrote:
or download the file without the php-script and analyse the
http-headers with a network-sniffer
There is no way to download the file without
Hello,
On 01/19/2004 09:40 PM, Ben Ramsey wrote:
I'm pretty sure I know how to use header() create a CSV file for a
client to download data from a database, but I think it would really
impress this client if I could generate a Microsoft Excel file instead
of a CSV file. Anyone know how to do
Alright. You've all given some great suggestions, and I'm going to
track them down. But, for now, I'm settling for creating a CSV file.
My next question: How do I get the file to download without the .php
extension on the end? It's downloading it as filename.csv.php.
The code to right my
Alright. You've all given some great suggestions, and I'm going to
track them down. But, for now, I'm settling for creating a CSV file.
My next question: How do I get the file to download without the .php
extension on the end? It's downloading it as filename.csv.php.
The code to right
Adding any of those headers still does not remove the .php from the
end of the file when I am prompted for the download. I have a client
that will be downloading this file, and I do not wish to instruct them
to first remove the .php extension before they can view it.
-Ben
[EMAIL PROTECTED]
Ben Ramsey wrote:
Adding any of those headers still does not remove the .php from the
end of the file when I am prompted for the download. I have a client
that will be downloading this file, and I do not wish to instruct them
to first remove the .php extension before they can view it.
Are you
: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Generating an Excel file?
Ben Ramsey wrote:
Adding any of those headers still does not remove the .php from the
end of the file when I am prompted for the download. I have a client
that will be downloading this file, and I do not wish to instruct them
12 matches
Mail list logo