Re: setting header() for csv file

From: Date: Tue, 05 Aug 2003 22:32:26 +0000
Subject: Re: setting header() for csv file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-158367@lists.php.net to get a copy of this message
Hi again -- ..and then David T-G said... % .. % How do I construct the headers so that the browser says "Oh, this is a It turns out that my header attempt was good and I just had to try again. I don't *think* I had the same blank-line-of-output as mentioned in the manual, but it's possible :-) Now my header("Content-Type: application/csv") ; works dandily. % CSV file, and here is its name; where shall I save it?" and the user % doesn't have to jump through any hoops? I finally found it! Thanks, google, and some patience :-) What I wanted was the disposition, so I now have header ("Content-disposition: attachment; filename=$name.csv") ; and all the user has to do is pick the local directory. Woo hoo! % % % TIA & HAND Thanks anyway, and here's hoping that this will pop up in the archives for the next seeker. HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#158367) next »