[PHP] Re: Generating CSV files on the fly and getting the browser to download

2002-09-10 Thread Erwin
Henry wrote: > It didn'ti work ;-( > > Just showed a page with the data in! > > How would I do it with a file in any case? > You can give the PHP script the extension .csv and use AddType application/x-httpd-php .csv to your httpd.conf or .htaccess file. If you want to use a temporary file, you

RE: [PHP] Re: Generating CSV files on the fly and getting the browser to download

2002-09-10 Thread Dave at Sinewaves.net
PROTECTED] Subject: [PHP] Re: Generating CSV files on the fly and getting the browser to download It didn'ti work ;-( Just showed a page with the data in! How would I do it with a file in any case? Henry "Lallous" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]&q

[PHP] Re: Generating CSV files on the fly and getting the browser to download

2002-09-10 Thread Henry
It didn'ti work ;-( Just showed a page with the data in! How would I do it with a file in any case? Henry "Lallous" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Try this: > > $fileextension="csv"; > $filename="report"; > $fnsave = "$filename.$fileextensi

[PHP] Re: Generating CSV files on the fly and getting the browser to download

2002-09-10 Thread lallous
Try this: Elias "Henry" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi All, > > I suspect this is a commonly asked question but; how do I generate a CSV > files on the fly and get the browser to download it. > > Do I actually need to generate a file or c