FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread Vincent Jansen
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

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread Ben Ramsey
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

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread php
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:

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread Ben Ramsey
[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 --

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread CPT John W. Holmes
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

Re: FW: [PHP] Re: Generating an Excel file?

2004-01-20 Thread php
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

[PHP] Re: Generating an Excel file?

2004-01-19 Thread Manuel Lemos
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

[PHP] Re: Generating an Excel file?

2004-01-19 Thread Ben Ramsey
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

Re: [PHP] Re: Generating an Excel file?

2004-01-19 Thread daniel
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

Re: [PHP] Re: Generating an Excel file?

2004-01-19 Thread Ben Ramsey
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]

Re: [PHP] Re: Generating an Excel file?

2004-01-19 Thread John W. Holmes
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

RE: [PHP] Re: Generating an Excel file?

2004-01-19 Thread Williams, Olwen - SAL
: [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