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" with

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 d

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 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

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=whatever&dummy=f.csv Olwen - Sal Williams wrote: > Name it for example something.csv > > The in y

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

2004-01-20 Thread Vincent Jansen
I use header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); header( "Content-type: application/x-excel" );